shlink-web-client/test/common/reducer/sidebar.test.ts

13 lines
448 B
TypeScript
Raw Normal View History

2023-02-18 13:11:01 +03:00
import { sidebarNotPresent, sidebarPresent, sidebarReducer } from '../../../src/common/reducers/sidebar';
2022-03-11 18:12:54 +03:00
describe('sidebarReducer', () => {
describe('reducer', () => {
it.each([
[sidebarPresent, { sidebarPresent: true }],
[sidebarNotPresent, { sidebarPresent: false }],
])('returns expected on %s', (actionCreator, expected) => {
expect(sidebarReducer(undefined, actionCreator())).toEqual(expected);
2022-03-11 18:12:54 +03:00
});
});
});