Tests: start reducers/auth tests
This commit is contained in:
parent
9da7037fcf
commit
0c1eeb9efa
1 changed files with 12 additions and 0 deletions
12
app/soapbox/reducers/__tests__/auth-test.js
Normal file
12
app/soapbox/reducers/__tests__/auth-test.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import reducer from '../auth';
|
||||
import { Map as ImmutableMap, List as ImmutableList } from 'immutable';
|
||||
|
||||
describe('auth reducer', () => {
|
||||
it('should return the initial state', () => {
|
||||
expect(reducer(undefined, {})).toEqual(ImmutableMap({
|
||||
app: ImmutableMap(),
|
||||
user: ImmutableMap(),
|
||||
tokens: ImmutableList(),
|
||||
}));
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue