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

21 lines
540 B
JavaScript
Raw Normal View History

2020-06-09 18:08:07 -07:00
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,
2021-03-29 11:44:39 -07:00
follow_request: false,
2020-06-09 18:08:07 -07:00
favourite: false,
reblog: false,
mention: false,
poll: false,
}),
isSubscribed: false,
browserSupport: false,
}));
});
});