fix(fe-i18n-spec): fix tests

This commit is contained in:
Gregor Kleen 2019-10-31 16:15:16 +01:00
parent 8af256e55d
commit 339fa398b4

View File

@ -9,7 +9,7 @@ describe('I18n', () => {
// helper function
function expectTranslation(id, value) {
expect(i18n.translations[id]).toMatch(value);
expect(i18n.get(id)).toMatch(value);
}
it('should create', () => {
@ -38,7 +38,7 @@ describe('I18n', () => {
describe('get()', () => {
it('should return stored translations', () => {
i18n.translations.id1 = 'something';
i18n.add('id1', 'something');
expect(i18n.get('id1')).toMatch('something');
});