Skip to content

Commit 66f3fb1

Browse files
author
Christoph Werner
committed
Remove falsy assertion
1 parent 39ca4f1 commit 66f3fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ describe('mongoose-patch-history', () => {
158158
Post.create({ title: 'version 1' })
159159
.then((post) => {
160160
return post.rollback(ObjectId())
161-
.then(() => { assert(false); done() })
161+
.then(() => { done() })
162162
.catch((err) => { assert(err instanceof RollbackError); done() })
163163
})
164164
})
@@ -168,7 +168,7 @@ describe('mongoose-patch-history', () => {
168168
.then((post) => join(post, post.patches.findOne({ ref: post.id })))
169169
.then(([post, latestPatch]) => {
170170
return post.rollback(latestPatch.id)
171-
.then(() => { assert(false); done() })
171+
.then(() => { done() })
172172
.catch((err) => { assert(err instanceof RollbackError); done() })
173173
})
174174
})

0 commit comments

Comments
 (0)