From 270d1958a6d4449b607419d50c4ff699d33a1c20 Mon Sep 17 00:00:00 2001 From: Eduardo Sorribas Date: Sat, 15 Nov 2014 19:57:04 +0100 Subject: [PATCH] Add some more docs to the distinct test. --- test/test-disinct.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/test-disinct.js b/test/test-disinct.js index 77a1764..6b36f05 100644 --- a/test/test-disinct.js +++ b/test/test-disinct.js @@ -4,10 +4,19 @@ var insert = require('./insert'); insert('distinct', [{ goodbye:'world', hello:'space' +}, { + goodbye:'world', + hello:'space' +}, { + goodbye:'earth', + hello:'space' +}, { + goodbye:'world', + hello:'space' }], function(db, t, done) { db.a.distinct('goodbye',{hello:'space'},function(err, docs) { t.ok(!err); - t.equal(docs.length, 1); + t.equal(docs.length, 2); t.equal(docs[0], 'world'); done(); });