Skip to content

Commit

Permalink
fix(build): fix coverage issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Demivan committed Aug 7, 2019
1 parent 20ca5be commit 71841fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ export default {

if (options.fluent && options.fluent instanceof FluentVue) {
this._fluent = options.fluent
} else if (this.$root && this.$root.$fluent && this.$root.$fluent instanceof FluentVue) {
this._fluent = this.$root.$fluent
} else if (
options.parent &&
options.parent.$fluent &&
Expand Down
4 changes: 2 additions & 2 deletions test/fluent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('fluent', () => {
welcome = Welcome, { $name }, to { -brand-name }!
`)
)
const helloUser = bundle.getMessage('welcome')
const helloUser = bundle.getMessage('welcome') as any

// Act
const message = bundle.formatPattern(helloUser.value, { name: 'John' })
Expand All @@ -39,7 +39,7 @@ describe('fluent', () => {
}.
`)
)
const sharedPhotos = bundle.getMessage('shared-photos')
const sharedPhotos = bundle.getMessage('shared-photos') as any

// Act
const message = bundle.formatPattern(sharedPhotos.value, {
Expand Down

0 comments on commit 71841fb

Please sign in to comment.