mirror of https://github.com/embarklabs/embark.git
Use matcher for error message instead of string
This commit is contained in:
parent
05dea5844a
commit
0230e29a8d
|
@ -41,7 +41,7 @@ describe('ContractSources', () => {
|
||||||
it('should throw an error when the file does not exist', (done) => {
|
it('should throw an error when the file does not exist', (done) => {
|
||||||
assert.throws(() => {
|
assert.throws(() => {
|
||||||
new ContractSources(['fixtures/404.sol']);
|
new ContractSources(['fixtures/404.sol']);
|
||||||
}, "ENOENT: no such file or directory, open 'fixtures/404.sol'");
|
}, /ENOENT: no such file or directory, open/);
|
||||||
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue