13 lines
335 B
JavaScript
13 lines
335 B
JavaScript
import chai from 'chai';
|
|
import { ConfigurationError } from '../lib/errors';
|
|
|
|
chai.should();
|
|
|
|
describe('Errors', () => {
|
|
it('should have a configuration error', () => {
|
|
const error = new ConfigurationError();
|
|
error.message.should.equal('Invalid configuration file given');
|
|
error.should.be.an.instanceof(Error);
|
|
});
|
|
});
|