2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Fix this reference for JavaScript functions (#38725)

This commit is contained in:
Nathan Sarang-Walters
2024-07-18 22:05:21 -07:00
committed by GitHub
parent 74891cb3a6
commit 16d80a4ff7
8 changed files with 101 additions and 12 deletions
+4 -1
View File
@@ -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')
})
})