2020-06-09 18:08:07 -07:00
|
|
|
import { Map as ImmutableMap } from 'immutable';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
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,
|
|
|
|
}));
|
|
|
|
});
|
|
|
|
});
|