mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-09-18 09:45:36 +05:30
17 lines
442 B
JavaScript
17 lines
442 B
JavaScript
|
import expect from 'unexpected';
|
||
|
|
||
|
import auth from 'components/auth/reducer';
|
||
|
import { setLogin, SET_LOGIN } from 'components/auth/actions';
|
||
|
|
||
|
describe('auth reducer', () => {
|
||
|
describe(SET_LOGIN, () => {
|
||
|
it('should set login', () => {
|
||
|
const expectedLogin = 'foo';
|
||
|
|
||
|
expect(auth(undefined, setLogin(expectedLogin)), 'to satisfy', {
|
||
|
login: expectedLogin
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
});
|