mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
Switch to Jasmine's toBeInstanceOf matcher
This commit is contained in:
@@ -641,7 +641,7 @@ describe('ScrollSpy', () => {
|
||||
const scrollSpy = new ScrollSpy(div)
|
||||
|
||||
expect(ScrollSpy.getInstance(div)).toEqual(scrollSpy)
|
||||
expect(ScrollSpy.getInstance(div) instanceof ScrollSpy).toEqual(true)
|
||||
expect(ScrollSpy.getInstance(div)).toBeInstanceOf(ScrollSpy)
|
||||
})
|
||||
|
||||
it('should return null if there is no instance', () => {
|
||||
|
||||
Reference in New Issue
Block a user