bigbuffet-rw/app/soapbox/reducers/__tests__/push_notifications.test.ts

20 lines
467 B
TypeScript
Raw Normal View History

2022-01-10 14:01:24 -08:00
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
});
});