accounts-frontend/tests/components/auth/reducer.test.js

17 lines
442 B
JavaScript
Raw Normal View History

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
});
});
});
});