Skip to content

Commit

Permalink
test: Fix collection#save test
Browse files Browse the repository at this point in the history
  • Loading branch information
eastolfi committed Nov 9, 2017
1 parent 7bc903a commit 7585549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/collection/Collection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe("Collection", function() {
it("should be able to save an existing document", function(done) {
db.collection(TEST_COLL).then(coll => {
// update / upsert
coll.save({ _id: 12345, stringField: "save" }, function(error, updatedInfo) {
coll.save({ _id: 12345, stringField: "save" }).then((updatedInfo) => {
expect(updatedInfo).to.exist;
expect(updatedInfo.updated).to.exist;
expect(updatedInfo.inserted).to.exist;
Expand Down

0 comments on commit 7585549

Please sign in to comment.