fix tests

This commit is contained in:
crptm 2017-05-24 03:16:26 +04:00
parent 94b7111761
commit fe8da56fec
1 changed files with 10 additions and 10 deletions

View File

@ -2,11 +2,11 @@ import {CHANGE_LANGUAGE, CONFIG_LANGUAGE_CHANGE} from '../../common/actions/conf
describe('actions', () => {
it('should create an action to change language to index', () => {
const index = 2
const value = { name: 'English', sign: 'en' };
const expectedAction = {
type: CONFIG_LANGUAGE_CHANGE,
index
}
expect(CHANGE_LANGUAGE(index)).toEqual(expectedAction)
})
})
value
};
expect(CHANGE_LANGUAGE(value)).toEqual(expectedAction);
});
});