Browse Source

Add some more docs to the distinct test.

saintedlama/travis-non-legacy
Eduardo Sorribas 10 years ago
parent
commit
270d1958a6
  1. 11
      test/test-disinct.js

11
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();
});

Loading…
Cancel
Save