shlink-web-client/test/app/reducers/appUpdates.test.ts

14 lines
470 B
TypeScript
Raw Normal View History

2023-02-18 13:11:01 +03:00
import { appUpdateAvailable, appUpdatesReducer, resetAppUpdate } from '../../../src/app/reducers/appUpdates';
2021-06-06 19:49:38 +03:00
describe('appUpdatesReducer', () => {
describe('reducer', () => {
it('returns true on APP_UPDATE_AVAILABLE', () => {
expect(appUpdatesReducer(undefined, appUpdateAvailable())).toEqual(true);
2021-06-06 19:49:38 +03:00
});
it('returns false on RESET_APP_UPDATE', () => {
expect(appUpdatesReducer(undefined, resetAppUpdate())).toEqual(false);
2021-06-06 19:49:38 +03:00
});
});
});