We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39ca4f1 commit 66f3fb1Copy full SHA for 66f3fb1
test/index.js
@@ -158,7 +158,7 @@ describe('mongoose-patch-history', () => {
158
Post.create({ title: 'version 1' })
159
.then((post) => {
160
return post.rollback(ObjectId())
161
- .then(() => { assert(false); done() })
+ .then(() => { done() })
162
.catch((err) => { assert(err instanceof RollbackError); done() })
163
})
164
@@ -168,7 +168,7 @@ describe('mongoose-patch-history', () => {
168
.then((post) => join(post, post.patches.findOne({ ref: post.id })))
169
.then(([post, latestPatch]) => {
170
return post.rollback(latestPatch.id)
171
172
173
174
0 commit comments