Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "fawn", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Library for atomic-ish operations in MongoDB", | ||
@@ -41,2 +41,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
# Fawn | ||
## Promise based Library for atomic-ish operations in MongoDB | ||
## Promise based Library for transactions in MongoDB | ||
@@ -4,0 +4,0 @@ Fawn provides the ability to carry out edits on a mongoDB database as a series of steps. If an error occurs on any of the steps, the database is returned to it's initial state (it's state before the transaction started). |
@@ -227,10 +227,3 @@ "use strict"; | ||
.remove(TEST_COLLECTION_A, {name: "Gabe's Owner"}) | ||
.run() | ||
.then(function (results) { | ||
results.forEach(function (r) { | ||
// console.log("==>", r); | ||
}); | ||
return Promise.resolve(results); | ||
})) | ||
.run()) | ||
.to.eventually.have.length(4); | ||
@@ -237,0 +230,0 @@ }); |
46598
1076