quickbuild
Version:
A mature, feature-complete application generator with an emphasis on speed
18 lines (14 loc) • 443 B
JavaScript
import { CHANGE_USERNAME } from '../constants';
import { changeUsername } from '../actions';
describe('Home Actions', () => {
describe('changeUsername', () => {
it('should return the correct type and the passed name', () => {
const fixture = 'Max';
const expectedResult = {
type: CHANGE_USERNAME,
username: fixture,
};
expect(changeUsername(fixture)).toEqual(expectedResult);
});
});
});