Skip to content

Commit

Permalink
Add unit test for BindingResolutionError
Browse files Browse the repository at this point in the history
  • Loading branch information
stratedge committed Dec 3, 2019
1 parent 986b221 commit 6a37e73
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/errors/BindingResolutionError/constructorTest.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { BindingResolutionError } from '../../../src/errors/BindingResolutionError'

describe('errors: BindingResolutionError: constructor()', function () {
it('should set the correct message value', function () {
const error = new BindingResolutionError('testing')

this.assert.equal(
error.message,
'Failed to resolve a binding with the key \'testing\' from the service container.'
)
})
})

0 comments on commit 6a37e73

Please sign in to comment.