Skip to content

Commit 71841fb

Browse files
committed
fix(build): fix coverage issue
1 parent 20ca5be commit 71841fb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/mixin.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export default {
77

88
if (options.fluent && options.fluent instanceof FluentVue) {
99
this._fluent = options.fluent
10-
} else if (this.$root && this.$root.$fluent && this.$root.$fluent instanceof FluentVue) {
11-
this._fluent = this.$root.$fluent
1210
} else if (
1311
options.parent &&
1412
options.parent.$fluent &&

test/fluent.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('fluent', () => {
1414
welcome = Welcome, { $name }, to { -brand-name }!
1515
`)
1616
)
17-
const helloUser = bundle.getMessage('welcome')
17+
const helloUser = bundle.getMessage('welcome') as any
1818

1919
// Act
2020
const message = bundle.formatPattern(helloUser.value, { name: 'John' })
@@ -39,7 +39,7 @@ describe('fluent', () => {
3939
}.
4040
`)
4141
)
42-
const sharedPhotos = bundle.getMessage('shared-photos')
42+
const sharedPhotos = bundle.getMessage('shared-photos') as any
4343

4444
// Act
4545
const message = bundle.formatPattern(sharedPhotos.value, {

0 commit comments

Comments
 (0)