first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { css } from './css';
describe('css', function () {
it('can join classes', function () {
expect(css('a', 'b', 'c')).toEqual('a b c');
});
it('can handle null/undefined/false/blanks', function () {
expect(css('a', null, undefined, false, 'b', 'c')).toEqual('a b c');
});
it('can handle an object with a toString', function () {
expect(css('a', { toString: function () { return 'b'; } }, 'c')).toEqual('a b c');
});
it('can handle a class map', function () {
expect(css('a', { b: true, z: false }, 'c')).toEqual('a b c');
});
});
//# sourceMappingURL=css.test.js.map