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

22 lines
535 B
JavaScript
Raw Normal View History

2020-06-09 18:08:07 -07:00
import { Map as ImmutableMap } from 'immutable';
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, {})).toEqual(ImmutableMap({
subscription: null,
alerts: new ImmutableMap({
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,
}));
});
});