Skip to content

Commit

Permalink
Merge pull request #150 from countable/master
Browse files Browse the repository at this point in the history
test for distinct
  • Loading branch information
sorribas committed Sep 8, 2014
2 parents 952f504 + 9893b71 commit aff9dbc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test-disinct.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var test = require('./tape');
var insert = require('./insert');

insert('distinct', [{
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[0], 'world');
done();
});
});

0 comments on commit aff9dbc

Please sign in to comment.