mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-22 15:58:31 +00:00
fix test
This commit is contained in:
parent
bead2b30ad
commit
8696213e91
@ -10,6 +10,7 @@
|
||||
"^routing": "<rootDir>/common/routing",
|
||||
"^components$": "<rootDir>/common/components",
|
||||
"^containers$": "<rootDir>/common/containers",
|
||||
"^translations(.*)": "<rootDir>/common/translations$1"
|
||||
"^translations(.*)": "<rootDir>/common/translations$1",
|
||||
"^libs(.*)": "<rootDir>/common/libs$1"
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { CHANGE_LANGUAGE, CONFIG_LANGUAGE_CHANGE } from '../../common/actions/config';
|
||||
import { changeLanguage } from '../../common/actions/config';
|
||||
|
||||
describe('actions', () => {
|
||||
it('should create an action to change language to index', () => {
|
||||
const value = { name: 'English', sign: 'en' };
|
||||
const value = 'en' ;
|
||||
const expectedAction = {
|
||||
type: CONFIG_LANGUAGE_CHANGE,
|
||||
type: 'CONFIG_LANGUAGE_CHANGE',
|
||||
value
|
||||
};
|
||||
expect(CHANGE_LANGUAGE(value)).toEqual(expectedAction);
|
||||
expect(changeLanguage(value)).toEqual(expectedAction);
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user