diff --git a/spec/actions/config.spec.js b/spec/actions/config.spec.js index e2091c4a..62f64355 100644 --- a/spec/actions/config.spec.js +++ b/spec/actions/config.spec.js @@ -1,12 +1,12 @@ -import {CHANGE_LANGUAGE, CONFIG_LANGUAGE_CHANGE} from '../../common/actions/config'; +import { CHANGE_LANGUAGE, CONFIG_LANGUAGE_CHANGE } from '../../common/actions/config'; describe('actions', () => { - it('should create an action to change language to index', () => { - const index = 2 - const expectedAction = { - type: CONFIG_LANGUAGE_CHANGE, - index - } - expect(CHANGE_LANGUAGE(index)).toEqual(expectedAction) - }) -}) \ No newline at end of file + it('should create an action to change language to index', () => { + const value = { name: 'English', sign: 'en' }; + const expectedAction = { + type: CONFIG_LANGUAGE_CHANGE, + value + }; + expect(CHANGE_LANGUAGE(value)).toEqual(expectedAction); + }); +});