mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Switch to Jasmine's toBeInstanceOf matcher
This commit is contained in:
@@ -384,7 +384,7 @@ describe('Toast', () => {
|
||||
const toast = new Toast(div)
|
||||
|
||||
expect(Toast.getInstance(div)).toEqual(toast)
|
||||
expect(Toast.getInstance(div) instanceof Toast).toEqual(true)
|
||||
expect(Toast.getInstance(div)).toBeInstanceOf(Toast)
|
||||
})
|
||||
|
||||
it('should return null when there is no toast instance', () => {
|
||||
|
||||
Reference in New Issue
Block a user