pleroma/src/reducers/push-notifications.test.ts

20 lines
466 B
TypeScript
Raw Normal View History

import reducer from './push-notifications';
2020-06-09 18:08:07 -07:00
describe('push_notifications reducer', () => {
it('should return the initial state', () => {
expect(reducer(undefined, {} as any).toJS()).toEqual({
2020-06-09 18:08:07 -07:00
subscription: null,
alerts: {
2021-11-18 13:11:50 -08:00
follow: true,
follow_request: true,
favourite: true,
reblog: true,
mention: true,
poll: true,
},
2020-06-09 18:08:07 -07:00
isSubscribed: false,
browserSupport: false,
});
2020-06-09 18:08:07 -07:00
});
});