From 0230e29a8db15a113aff91b8967bf758404362eb Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 30 Aug 2018 13:29:33 -0400 Subject: [PATCH] Use matcher for error message instead of string --- test/coverage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/coverage.js b/test/coverage.js index 88a4e4600..6219d3ead 100644 --- a/test/coverage.js +++ b/test/coverage.js @@ -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(); });