balena-cli/lib/resin/errors/errors.spec.coffee
2014-12-22 12:47:12 -04:00

13 lines
302 B
CoffeeScript

expect = require('chai').expect
errors = require('./errors')
describe 'Errors:', ->
describe 'NotFound', ->
it 'should get a custom message', ->
message = 'Foo'
error = new errors.NotFound(message)
expect(error.message).to.not.equal(message)
expect(error.message).to.contain(message)