Files
ontime/client/src/common/utils/__tests__/styleUtils.test.ts
T
Carlos Valente 110d3fb7a3 v2 event timer (#274)
* 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
2022-12-26 12:58:33 +01:00

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();
});
});