mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-30 16:13:59 +00:00
13 lines
302 B
CoffeeScript
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)
|