You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
326 B

var insert = require('./insert')
insert('update and callback', [{
hello: 'world'
}], function (db, t, done) {
var sync = true
db.a.update({hello: 'world'}, {$set: {hello: 'verden'}}, function (err, lastErrorObject) {
t.ok(!sync)
t.error(err)
t.equal(lastErrorObject.n, 1)
done()
})
sync = false
})