Outlook_Addin_LLM/node_modules/@fluentui/utilities/lib-commonjs/css.test.js

18 lines
757 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var css_1 = require("./css");
describe('css', function () {
it('can join classes', function () {
expect((0, css_1.css)('a', 'b', 'c')).toEqual('a b c');
});
it('can handle null/undefined/false/blanks', function () {
expect((0, css_1.css)('a', null, undefined, false, 'b', 'c')).toEqual('a b c');
});
it('can handle an object with a toString', function () {
expect((0, css_1.css)('a', { toString: function () { return 'b'; } }, 'c')).toEqual('a b c');
});
it('can handle a class map', function () {
expect((0, css_1.css)('a', { b: true, z: false }, 'c')).toEqual('a b c');
});
});
//# sourceMappingURL=css.test.js.map