UNPKG

optimizely-oui

Version:

Optimizely's Component Library.

24 lines (22 loc) 568 B
"use strict"; var toScss = require("./scss"); describe("throws errors", function () { it("throws an error when no `id` is provided", function () { var token = { value: "hsla(227, 100%, 75%, 1)", name: "Brand Blue (Light)" }; expect(function () { return toScss("", token); }).toThrow(); }); it("throws an error when no `value` is provided", function () { var token = { id: "brand-blue-light", name: "Brand Blue (Light)" }; expect(function () { return toScss("", token); }).toThrow(); }); });