Skip to content

Commit

Permalink
Update tests.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyMaci committed Jun 29, 2016
1 parent 72608a0 commit ae3aff1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ QUnit.test("getNextIndexes test", function (assert) {
console.log(nextIndexes);
assert.deepEqual( nextIndexes, [3,4], "nextIndexes should be equal" );
});

QUnit.test("getPreviousIndexes test", function (assert) {
var previousIndexes = foolish.getPreviousIndexes(array, 3, 2);
console.log(previousIndexes);
assert.deepEqual( previousIndexes, [1,0], "previousIndexes should be equal" );
});

0 comments on commit ae3aff1

Please sign in to comment.