fix(fe-i18n-spec): fix tests
This commit is contained in:
parent
8af256e55d
commit
339fa398b4
@ -9,7 +9,7 @@ describe('I18n', () => {
|
|||||||
|
|
||||||
// helper function
|
// helper function
|
||||||
function expectTranslation(id, value) {
|
function expectTranslation(id, value) {
|
||||||
expect(i18n.translations[id]).toMatch(value);
|
expect(i18n.get(id)).toMatch(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
it('should create', () => {
|
it('should create', () => {
|
||||||
@ -38,7 +38,7 @@ describe('I18n', () => {
|
|||||||
|
|
||||||
describe('get()', () => {
|
describe('get()', () => {
|
||||||
it('should return stored translations', () => {
|
it('should return stored translations', () => {
|
||||||
i18n.translations.id1 = 'something';
|
i18n.add('id1', 'something');
|
||||||
expect(i18n.get('id1')).toMatch('something');
|
expect(i18n.get('id1')).toMatch('something');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user