Skip to content

Commit

Permalink
Updating test to cover new behavior of limit()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed May 31, 2015
1 parent 6fabc9a commit 48761eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/haro_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ exports["create (batch)"] = {
test: function (test) {
var self = this;

test.expect(7);
test.expect(8);
test.equal(this.store.total, 0, "Should be '0'");
test.equal(this.store.data.size, 0, "Should be '0'");
this.store.batch(data, "set").then(function() {
Expand All @@ -86,6 +86,7 @@ exports["create (batch)"] = {
test.equal(self.store.registry.length, 6, "Should be '6'");
test.equal(self.store.limit(2, 1)[0][0], self.store.get(self.store.registry[2])[0], "Should be a match");
test.equal(self.store.limit(2, 2)[1][0], self.store.get(self.store.registry[3])[0], "Should be a match");
test.equal(self.store.limit(10, 5).length, 0, "Should be '0'");
test.done();
}, function (e) {
console.log(e.stack);
Expand Down

0 comments on commit 48761eb

Please sign in to comment.