1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-16 10:34:07 +02:00

Popover/Tooltip: streamline config property to start with underscore (#33381)

This commit is contained in:
GeoSot
2021-05-12 12:15:59 +03:00
committed by GitHub
parent 15d0105393
commit 9a9e22475c
3 changed files with 41 additions and 41 deletions

View File

@@ -80,7 +80,7 @@ describe('Tooltip', () => {
const tooltipEl = fixtureEl.querySelector('a')
const tooltip = new Tooltip(tooltipEl)
expect(tooltip.config.sanitize).toEqual(true)
expect(tooltip._config.sanitize).toEqual(true)
})
it('should convert title and content to string if numbers', () => {
@@ -92,8 +92,8 @@ describe('Tooltip', () => {
content: 7
})
expect(tooltip.config.title).toEqual('1')
expect(tooltip.config.content).toEqual('7')
expect(tooltip._config.title).toEqual('1')
expect(tooltip._config.content).toEqual('7')
})
it('should enable selector delegation', done => {