mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 23:54:08 +02:00
JS: tests fixes & standardization of spies usage (#36398)
* Fix carousel spec typo * Change carousel test name in align with testing method * Make the spies declarations the same everywhere
This commit is contained in:
committed by
GitHub
parent
78c0ad8044
commit
d388bd6e1b
@@ -108,11 +108,11 @@ describe('Base Component', () => {
|
||||
|
||||
it('should de-register element event listeners', () => {
|
||||
createInstance()
|
||||
spyOn(EventHandler, 'off')
|
||||
const spy = spyOn(EventHandler, 'off')
|
||||
|
||||
instance.dispose()
|
||||
|
||||
expect(EventHandler.off).toHaveBeenCalledWith(element, DummyClass.EVENT_KEY)
|
||||
expect(spy).toHaveBeenCalledWith(element, DummyClass.EVENT_KEY)
|
||||
})
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user