Skip to content

Commit 36e63c2

Browse files
committed
coverage for new global mixin strategy
1 parent c902e1f commit 36e63c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unit/features/global-api/mixin.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe('Global API: mixin', () => {
2121
it('should work for constructors created before mixin is applied', () => {
2222
const calls = []
2323
const Test = Vue.extend({
24+
name: 'test',
2425
init () {
2526
calls.push(this.$options.myOption + ' local')
2627
}
@@ -30,6 +31,7 @@ describe('Global API: mixin', () => {
3031
calls.push(this.$options.myOption + ' global')
3132
}
3233
})
34+
expect(Test.options.name).toBe('test')
3335
new Test({
3436
myOption: 'hello'
3537
})

0 commit comments

Comments
 (0)