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:
@@ -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 => {
|
||||
|
Reference in New Issue
Block a user