bigbuffet-rw/app/soapbox/reducers/__tests__/push_notifications-test.js
2021-03-29 13:44:39 -05:00

20 lines
540 B
JavaScript

import reducer from '../push_notifications';
import { Map as ImmutableMap } from 'immutable';
describe('push_notifications reducer', () => {
it('should return the initial state', () => {
expect(reducer(undefined, {})).toEqual(ImmutableMap({
subscription: null,
alerts: new ImmutableMap({
follow: false,
follow_request: false,
favourite: false,
reblog: false,
mention: false,
poll: false,
}),
isSubscribed: false,
browserSupport: false,
}));
});
});