dbs-and-docs-test-bulkAddDriver
module.exports = bulkAddDriverTest
//{ ok: true, index: 2, value: 'Justin' }
function bulkAddDriverTest(a, b) {
return function (err, res) {
// what a and b are without having to have a global
console.log("Notebook engaged!");
if (err === a &&
res.ok === b.ok &&
res[b.index].firstName === b.value) {
console.log('response: ' + JSON.stringify(res))
console.log('success! Done.')
} else if (err === a &&
res.ok === b.ok &&
res.id !== b.id) {
console.log('Problem! Your document\'s _id does not equal ' + b.id)
}
else {
console.log('error' + JSON.stringify(err))
}
}
}
no comments