Files
Bubberstation/tgui/packages/common/react.spec.ts
SkyratBot b24e1530f7 [MIRROR] tgui: Upgrade to Yarn 2.4.1 and TypeScript 4.2 (#3947)
* tgui: Upgrade to Yarn 2.4.1 and TypeScript 4.2

* a

Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
2021-03-07 00:35:47 +00:00

21 lines
430 B
TypeScript

/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/
import { classes } from './react';
describe('classes', () => {
test('empty', () => {
expect(classes([])).toBe('');
});
test('result contains inputs', () => {
const output = classes(['foo', 'bar', false, true, 0, 1, 'baz']);
expect(output).toContain('foo');
expect(output).toContain('bar');
expect(output).toContain('baz');
});
});