mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 08:53:51 +00:00
110d3fb7a3
* lint: cleanup unused * refactor: rename component to avoid conflict * style: gap in element row * refactor: rename playstate -> playback * refactor: cleanup usages of timer and prepare integration manager * style: re-arrange button order * refactor: improve event loading * feat(timer-service): hot reload * fix: issue with duration input * chore: cleanup debug * refactor: resolve poll from runtime store * refactor: cleanup merge * refactor: small improvements in timer hot-reload
16 lines
438 B
TypeScript
16 lines
438 B
TypeScript
import { cx } from '../styleUtils';
|
|
|
|
import style from './styleUtils.module.scss';
|
|
|
|
describe('cx()', () => {
|
|
test('merges styles', () => {
|
|
const merged = cx([style.test, style.another]);
|
|
expect(merged).toMatchSnapshot();
|
|
});
|
|
test('ignores falsy values', () => {
|
|
const falsyStuff = false;
|
|
const merged = cx([undefined, false, 0, null, falsyStuff ? style.test : null]);
|
|
expect(merged).toMatchSnapshot();
|
|
});
|
|
});
|