kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Tests: start reducers/auth tests
rodzic
9da7037fcf
commit
0c1eeb9efa
|
@ -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(),
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
});
|
Ładowanie…
Reference in New Issue