Skip to content

Commit

Permalink
Workaround failing test by being less strict
Browse files Browse the repository at this point in the history
Before this, this test seem to be failing very weirdly as it claim there
is an error but still it sais expected "asdf" but got "asdf" - something
exactly identical.
  • Loading branch information
consideRatio committed Nov 12, 2019
1 parent 73923db commit a230132
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/proxy_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ describe("Proxy Tests", function() {
};
expect(() => {
const cp = new ConfigurableProxy(options);
}).toThrow(new Error("Cannot find module 'mybackend'"));
}).toThrowMatching(function(thrown) {
return thrown.message.includes("Cannot find module");
});
done();
});

Expand Down

0 comments on commit a230132

Please sign in to comment.