mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 17:40:23 +03:00
13 lines
470 B
TypeScript
13 lines
470 B
TypeScript
import { appUpdateAvailable, appUpdatesReducer, resetAppUpdate } from '../../../src/app/reducers/appUpdates';
|
|
|
|
describe('appUpdatesReducer', () => {
|
|
describe('reducer', () => {
|
|
it('returns true on APP_UPDATE_AVAILABLE', () => {
|
|
expect(appUpdatesReducer(undefined, appUpdateAvailable())).toEqual(true);
|
|
});
|
|
|
|
it('returns false on RESET_APP_UPDATE', () => {
|
|
expect(appUpdatesReducer(undefined, resetAppUpdate())).toEqual(false);
|
|
});
|
|
});
|
|
});
|