dbs-and-docs-test-bulkAddDriver

node v4.9.1
version: 3.0.0
endpointsharetweet
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)) } } }
Loading…

no comments

    sign in to comment