2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

tests: switch to using toContain() to check for substring presence (#32043)

This commit is contained in:
XhmikosR
2020-11-02 14:42:40 +02:00
committed by GitHub
parent e0b8fcdf89
commit 71010cb1e9
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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()
})