diff --git a/test/specs/fixture/locales.js b/test/specs/fixture/locales.js index d56d68c42..75c1f3cce 100644 --- a/test/specs/fixture/locales.js +++ b/test/specs/fixture/locales.js @@ -9,7 +9,8 @@ export default { } }, 'hello world': 'Hello World', - 'Hello {0}': 'Hello {0}' + 'Hello {0}': 'Hello {0}', + 'continue-with-new-account': 'continue with new account' }, ja: { message: { diff --git a/test/specs/index.js b/test/specs/index.js index a7cf8c02b..88e1d1e49 100644 --- a/test/specs/index.js +++ b/test/specs/index.js @@ -11,3 +11,4 @@ Vue.use(plugin) require('./i18n') require('./asset') require('./component') +require('./issues') diff --git a/test/specs/issues.js b/test/specs/issues.js new file mode 100644 index 000000000..aa50c82b7 --- /dev/null +++ b/test/specs/issues.js @@ -0,0 +1,18 @@ +import assert from 'power-assert' +import Vue from 'vue' +import locales from './fixture/locales' + + +describe('issues', () => { + let vm + + describe('#24', () => { + beforeEach(() => { + vm = new Vue() + }) + + it('should be translated', () => { + assert(vm.$t('continue-with-new-account') === locales[Vue.config.lang]['continue-with-new-account']) + }) + }) +})