bigbuffet-rw/app/soapbox/reducers/__tests__/push-notifications.test.ts
2022-11-16 08:34:50 -05:00

19 lines
467 B
TypeScript

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