From 24f53bc65338e02dff3323339c7ce93800289a5b Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Sat, 15 Feb 2014 09:27:47 -0800 Subject: [PATCH] Tests for nedb in browsers fixed --- browser-version/test/nedb-browser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser-version/test/nedb-browser.js b/browser-version/test/nedb-browser.js index e5c1d18..980dfff 100644 --- a/browser-version/test/nedb-browser.js +++ b/browser-version/test/nedb-browser.js @@ -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) {