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