Skip to content

Commit 0bb0da6

Browse files
authored
line vuejs#46 use .to.be.a
1 parent 75d9345 commit 0bb0da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/unit-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import MyComponent from 'path/to/MyComponent.vue'
4343
describe('MyComponent', () => {
4444
// Inspect the raw component options
4545
it('has a created hook', () => {
46-
expect(typeof MyComponent.created).toBe('function')
46+
expect(MyComponent.created).to.be.a('function')
4747
})
4848

4949
// Evaluate the results of functions in

0 commit comments

Comments
 (0)