Skip to content

Commit d55d7ad

Browse files
committed
add assertion to no arg test
1 parent 0157ad0 commit d55d7ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/specs/core.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ describe('Core', function () {
1313

1414
it('call Vue constructor with no arguments', function () {
1515
/* eslint-disable no-new */
16-
new Vue()
16+
expect(function () {
17+
new Vue()
18+
}).not.toThrow()
1719
/* eslint-enable no-new */
1820
})
1921

0 commit comments

Comments
 (0)