mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-14 09:34:36 +02:00
tests: switch to using toContain()
to check for substring presence (#32043)
This commit is contained in:
@@ -317,7 +317,7 @@ describe('Tooltip', () => {
|
||||
|
||||
expect(tooltipShown).toBeDefined()
|
||||
expect(tooltipEl.getAttribute('aria-describedby')).toEqual(tooltipShown.getAttribute('id'))
|
||||
expect(tooltipShown.getAttribute('id').indexOf('tooltip') !== -1).toEqual(true)
|
||||
expect(tooltipShown.getAttribute('id')).toContain('tooltip')
|
||||
done()
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user