Fixing test

This commit is contained in:
Chris Troutner
2022-03-23 16:17:26 -07:00
parent 37e2377113
commit 8cd8086440
+1 -6
View File
@@ -126,16 +126,11 @@ describe('#order-use-case', () => {
it('should catch and throw an error', async () => {
try {
// Force an error
sandbox
.stub(uut.orderEntity, 'validate')
.throws(new Error('test error'))
await uut.createOrder()
assert.fail('Unexpected code path')
} catch (err) {
assert.include(err.message, 'test error')
assert.include(err.message, 'Cannot set')
}
})
})