mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
21 lines
430 B
TypeScript
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');
|
|
});
|
|
});
|