Skip to content

Commit f93bba6

Browse files
committed
fix jest test i18n
1 parent a776dac commit f93bba6

File tree

3 files changed

+2
-29
lines changed

3 files changed

+2
-29
lines changed

src/i18n/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ const language = window.navigator.userLanguage || window.navigator.language;
2424
export default new VueI18n({
2525
locale: language,
2626
messages: locales,
27+
fallbackLocale: "en"
2728
});

tests/unit/specs/Landing.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { shallowMount } from '@vue/test-utils'
77
// Utilities
88
import { createLocalVue, mount } from '@vue/test-utils'
99

10-
import { i18n } from '../testutils'
11-
10+
import i18n from '../../../src/i18n/index';
1211

1312
describe('Landing.vue', () => {
1413
const localVue = createLocalVue();

tests/unit/testutils.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)