Browse Source

Cleanup test

saintedlama/travis-non-legacy
saintedlama 9 years ago
parent
commit
b6a755b809
  1. 5
      test/test-aggregate.js

5
test/test-aggregate.js

@ -9,9 +9,10 @@ insert('aggregate', [{
name: 'Charmander', type: 'fire'
}, {
name: 'Lapras', type: 'water'
}], function (db, t, done) {
}], function (db, t) {
db.a.aggregate({$group: {_id: '$type'}}, function (err, types) {
console.log(err, types)
t.error(err)
var arr = types.map(function (x) { return x._id })
t.equal(types.length, 2)
t.notEqual(arr.indexOf('fire'), -1)

Loading…
Cancel
Save