mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 09:30:31 +03:00
12 lines
448 B
TypeScript
12 lines
448 B
TypeScript
import { sidebarNotPresent, sidebarPresent, sidebarReducer } from '../../../src/common/reducers/sidebar';
|
|
|
|
describe('sidebarReducer', () => {
|
|
describe('reducer', () => {
|
|
it.each([
|
|
[sidebarPresent, { sidebarPresent: true }],
|
|
[sidebarNotPresent, { sidebarPresent: false }],
|
|
])('returns expected on %s', (actionCreator, expected) => {
|
|
expect(sidebarReducer(undefined, actionCreator())).toEqual(expected);
|
|
});
|
|
});
|
|
});
|