fix tests
This commit is contained in:
parent
94b7111761
commit
fe8da56fec
|
@ -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', () => {
|
describe('actions', () => {
|
||||||
it('should create an action to change language to index', () => {
|
it('should create an action to change language to index', () => {
|
||||||
const index = 2
|
const value = { name: 'English', sign: 'en' };
|
||||||
const expectedAction = {
|
const expectedAction = {
|
||||||
type: CONFIG_LANGUAGE_CHANGE,
|
type: CONFIG_LANGUAGE_CHANGE,
|
||||||
index
|
value
|
||||||
}
|
};
|
||||||
expect(CHANGE_LANGUAGE(index)).toEqual(expectedAction)
|
expect(CHANGE_LANGUAGE(value)).toEqual(expectedAction);
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
|
|
Loading…
Reference in New Issue