1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-11 08:04:59 +02:00

Carousel: rename private property

This commit is contained in:
GeoSot
2022-03-10 02:07:01 +02:00
committed by XhmikosR
parent ec0e1c220e
commit 3673933fe7
2 changed files with 8 additions and 8 deletions

View File

@@ -891,7 +891,7 @@ describe('Carousel', () => {
expect(carousel.cycle).toHaveBeenCalledWith(true)
expect(carousel._clearInterval).toHaveBeenCalled()
expect(carousel._isPaused).toBeTrue()
expect(carousel._stayPaused).toBeTrue()
})
it('should not call cycle if nothing is in transition', () => {
@@ -917,7 +917,7 @@ describe('Carousel', () => {
expect(carousel.cycle).not.toHaveBeenCalled()
expect(carousel._clearInterval).toHaveBeenCalled()
expect(carousel._isPaused).toBeTrue()
expect(carousel._stayPaused).toBeTrue()
})
it('should not set is paused at true if an event is passed', () => {
@@ -942,7 +942,7 @@ describe('Carousel', () => {
carousel.pause(event)
expect(carousel._clearInterval).toHaveBeenCalled()
expect(carousel._isPaused).toBeFalse()
expect(carousel._stayPaused).toBeFalse()
})
})
@@ -988,7 +988,7 @@ describe('Carousel', () => {
spyOn(window, 'setInterval').and.callThrough()
carousel._isPaused = true
carousel._stayPaused = true
carousel.cycle(true)
expect(window.setInterval).not.toHaveBeenCalled()