Skip to content

Commit

Permalink
Tests for nedb in browsers fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
louischatriot committed Feb 15, 2014
1 parent 26bb6be commit 24f53bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browser-version/test/nedb-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ describe('Basic CRUD functionality', function () {

db.update({ a: 4 }, { $inc: { b: 1 } }, { upsert: true }, function (err, nr, upsert) {
assert.isNull(err);
upsert.should.equal(true);
// Return upserted document
upsert.a.should.equal(4);
upsert.b.should.equal(1);
nr.should.equal(1);

db.find({}, function (err, docs) {
Expand Down

0 comments on commit 24f53bc

Please sign in to comment.