We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7f84d0 commit fd3395dCopy full SHA for fd3395d
test/test.js
@@ -32,14 +32,15 @@ describe('Walder', function () {
32
async function testActivationWithBadConfigFile(configFileName, textInErrorMessage) {
33
const configFile = path.resolve(__dirname, configFileName);
34
const walder = new Walder(configFile);
35
+ let error;
36
try {
37
await walder.activate();
38
} catch (e) {
- e.should.be.instanceOf(Error);
39
- e.message.should.contain(textInErrorMessage);
40
- return;
+ error = e;
41
}
42
- assert.fail("Hasn't thrown");
+ assert.isDefined(error);
+ error.should.be.instanceOf(Error);
43
+ error.message.should.contain(textInErrorMessage);
44
45
46
it('should throw an error when the config file contains missing HTML files in a route', async function () {
0 commit comments