Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 29, 2021
1 parent 4d4c1de commit 65c4dec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/generator-vue3.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ test('javascript: legacy', async () => {
expect(sfc).toMatch(`import { defineComponent } from 'vue'`)
expect(sfc).toMatch(`export default defineComponent({`)
const pack = files['package.json']
expect(pack).toMatch(`"vue-i18n": "^9.0.0-rc.7"`)
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^2.0.0-rc.1"`)
expect(pack).toMatch(`"vue-i18n": "^9.0.0"`)
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^2.0.0"`)
})

test('javascript: composition', async () => {
Expand Down Expand Up @@ -62,8 +62,8 @@ test('javascript: composition', async () => {
expect(sfc).toMatch(`export default defineComponent({`)
expect(sfc).toMatch(`const { t } = useI18n({`)
const pack = files['package.json']
expect(pack).toMatch(`"vue-i18n": "^9.0.0-rc.7"`)
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^2.0.0-rc.1"`)
expect(pack).toMatch(`"vue-i18n": "^9.0.0"`)
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^2.0.0"`)
})

test('typescript: composition', async () => {
Expand Down Expand Up @@ -107,6 +107,6 @@ test('typescript: composition', async () => {
expect(sfc).toMatch(`export default defineComponent({`)
expect(sfc).toMatch(`const { t } = useI18n({`)
const pack = files['package.json']
expect(pack).toMatch(`"vue-i18n": "^9.0.0-rc.7"`)
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^2.0.0-rc.1"`)
expect(pack).toMatch(`"vue-i18n": "^9.0.0"`)
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^2.0.0"`)
})

0 comments on commit 65c4dec

Please sign in to comment.