mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-08-25 22:19:57 +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
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
});
|