We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d9345 commit 0bb0da6Copy full SHA for 0bb0da6
src/v2/guide/unit-testing.md
@@ -43,7 +43,7 @@ import MyComponent from 'path/to/MyComponent.vue'
43
describe('MyComponent', () => {
44
// Inspect the raw component options
45
it('has a created hook', () => {
46
- expect(typeof MyComponent.created).toBe('function')
+ expect(MyComponent.created).to.be.a('function')
47
})
48
49
// Evaluate the results of functions in
0 commit comments