We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88423fc commit 3c65239Copy full SHA for 3c65239
test/unit/features/options/inject.spec.js
@@ -380,11 +380,14 @@ describe('Options provide/inject', () => {
380
bar: { default: false },
381
baz: { default: undefined }
382
},
383
- created () {}
+ created () {
384
+ injected = [this.foo, this.bar, this.baz]
385
+ }
386
})
387
expect(`Injection "foo" not found`).not.toHaveBeenWarned()
388
expect(`Injection "bar" not found`).not.toHaveBeenWarned()
389
expect(`Injection "baz" not found`).not.toHaveBeenWarned()
390
+ expect(injected).toEqual([1, false, undefined])
391
392
393
it('should use provided value even if inject has default', () => {
0 commit comments