Use matcher for error message instead of string

This commit is contained in:
Andre Medeiros 2018-08-30 13:29:33 -04:00
parent 05dea5844a
commit 0230e29a8d
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ describe('ContractSources', () => {
it('should throw an error when the file does not exist', (done) => {
assert.throws(() => {
new ContractSources(['fixtures/404.sol']);
}, "ENOENT: no such file or directory, open 'fixtures/404.sol'");
}, /ENOENT: no such file or directory, open/);
done();
});