Skip to content

Commit

Permalink
expand carousel unit test to cover initial slide element
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Bryson committed Oct 2, 2020
1 parent 49f7dfe commit a4d758d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/tests/unit/carousel.js
Expand Up @@ -516,6 +516,11 @@ $(function () {
'</div>'
var $carousel = $(templateHTML)

$carousel.appendTo('body')
$carousel.bootstrapCarousel(0)
assert.strictEqual($carousel.data('bs.carousel')._config.interval, 2814)
$carousel.remove()

$carousel.appendTo('body')
$carousel.bootstrapCarousel(1)
assert.strictEqual($carousel.data('bs.carousel')._config.interval, 3814)
Expand Down

0 comments on commit a4d758d

Please sign in to comment.