Skip to content

Commit 09fdd03

Browse files
author
Vladimir Kudinov
committed
Update test
1 parent 4defe19 commit 09fdd03

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/algorithm.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ describe('Algorithm', function(){
8585
Scrollissimo.knock(scrollTop);
8686
}else{
8787
clearInterval(timer);
88-
testResult.should.containEql(data.result[0]);
8988
testResult.forEach(function(resultValue, i){
90-
if(i > 0 && i < (testResult.length - 1)){
91-
(resultValue - testResult[i - 1]).should.be.below(data.maxSpeed + 1, 'Check if progress offset is below max speed');
89+
if(i > 1 && i < (testResult.length - 1)){
90+
(resultValue - testResult[i - 1]).should.be.below(data.maxSpeed + 1);
9291
}else{
9392
should.type('number');
9493
}

0 commit comments

Comments
 (0)