Skip to content

Commit

Permalink
Add some more docs to the distinct test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorribas committed Nov 15, 2014
1 parent 2a52649 commit 270d195
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/test-disinct.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 270d195

Please sign in to comment.