mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-21 19:13:44 +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
|
|
});
|
|
});
|
|
});
|
|
});
|