Skip to content

Commit 31dad30

Browse files
authored
Update api.spec.js
1 parent 44dbc00 commit 31dad30

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/unit/specs/api.spec.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,17 @@ describe('router app destroy handling', () => {
177177

178178
it('router and apps should be defined', () => {
179179
expect(router).toBeDefined()
180-
expect(router).toBeInstanceOf(Router)
180+
expect(router istanceof Router).toBe(true)
181181
expect(app1).toBeDefined()
182-
expect(app1).toBeInstanceOf(Vue)
182+
expect(app1 instanceof Vue).toBe(true)
183183
expect(app2).toBeDefined()
184-
expect(app2).toBeInstanceOf(Vue)
184+
expect(app2 instanceof Vue).toBe(true)
185185
expect(app3).toBeDefined()
186-
expect(app3).toBeInstanceOf(Vue)
186+
expect(app3 instanceof Vue).toBe(true)
187187
expect(app1.$router.apps).toBe(app2.$router.apps)
188188
expect(app2.$router.apps).toBe(app3.$router.apps)
189+
expect(app1.$router.app).toBe(app2.$router.app)
190+
expect(app2.$router.app).toBe(app3.$router.app)
189191
})
190192

191193
it('should have 3 registered apps', () => {

0 commit comments

Comments
 (0)