]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: update slider move event test
authorJoe Workman <joe@workmanmail.com>
Tue, 2 Nov 2021 13:24:35 +0000 (06:24 -0700)
committerJoe Workman <joe@workmanmail.com>
Tue, 2 Nov 2021 13:24:35 +0000 (06:24 -0700)
test/javascript/components/slider.js

index 7d73681c1a680235225be47298a883cb408d3336..913eb4d3a1f28b04972422f3933afad4a21b4bd8 100644 (file)
@@ -91,7 +91,7 @@ describe('Slider', function() {
 
       let timesCallbackCalled = 0;
       $html.on('moved.zf.slider', function(e, $handle) {
-        if (++timesCallbackCalled === 5) {
+        if (++timesCallbackCalled === 4) {
           $handle[0].should.be.equal(plugin.$handle[0]);
           done();
         }