Skip to content

Commit

Permalink
test for distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
countable committed Sep 7, 2014
1 parent 952f504 commit 9893b71
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 9893b71

Please sign in to comment.