forked from mattermost/mattermost-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.test.js
30 lines (24 loc) · 869 Bytes
/
index.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {UserTypes} from 'mattermost-redux/action_types';
import configureStore from './index';
describe('configureStore', () => {
test('should match initial state after logout', () => {
const store = configureStore();
const initialState = store.getState();
store.dispatch({type: UserTypes.LOGOUT_SUCCESS, data: {}});
expect(store.getState()).toEqual({
...initialState,
requests: {
...initialState.requests,
users: {
...initialState.requests.users,
logout: {
error: null,
status: 'success',
},
},
},
});
});
});