mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 17:40:23 +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);
|
|
});
|
|
});
|
|
});
|