Got test coverage back to 100%

This commit is contained in:
Chris Troutner
2022-06-27 10:15:35 -07:00
parent f117fe15df
commit dd36ebc7a0
2 changed files with 22 additions and 7 deletions
+9 -7
View File
@@ -21,13 +21,15 @@ class UseCases {
// Run any startup Use Cases at the start of the app.
async start () {
try {
console.log('Async Use Cases have been started.')
} catch (err) {
console.error('Error in use-cases/index.js/startUseCases()')
console.log(err)
throw err
}
// try {
console.log('Async Use Cases have been started.')
return true
// } catch (err) {
// console.error('Error in use-cases/index.js/start()')
// // console.log(err)
// throw err
// }
}
}
@@ -47,4 +47,17 @@ describe('#use-cases', () => {
}
})
})
describe('#start', () => {
it('should initialize async use cases', async () => {
const result = await uut.start()
assert.equal(result, true)
})
// it('should catch and throw errors', async () => {
// // Force an error
// sandbox.stub()
// })
})
})