soapbox/src/reducers/__tests__/push-notifications.test.ts

20 lines
467 B
TypeScript
Raw Normal View History

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