mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-30 23:36:47 +02:00
Fix this
reference for JavaScript functions (#38725)
This commit is contained in:
committed by
GitHub
parent
74891cb3a6
commit
16d80a4ff7
@@ -172,7 +172,10 @@ describe('Dropdown', () => {
|
||||
|
||||
const popperConfig = dropdown._getPopperConfig()
|
||||
|
||||
expect(getPopperConfig).toHaveBeenCalled()
|
||||
// Ensure that the function was called with the default config.
|
||||
expect(getPopperConfig).toHaveBeenCalledWith(jasmine.objectContaining({
|
||||
placement: jasmine.any(String)
|
||||
}))
|
||||
expect(popperConfig.placement).toEqual('left')
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user