Skip to content

Commit

Permalink
Fail tests when catching an AssertionError
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkiGibson committed May 16, 2018
1 parent 9ad3b6d commit 7fa1c20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/azure/azureCustomBaseUri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ describe('typescript', function () {
await Promise.race([testClient.paths.getEmpty('local'), timeoutPromise(1000)]);
assert.fail('');
} catch (error) {
should.exist(error);
should(error).not.be.instanceof(assert.AssertionError);
}
testClient.host = 'host:3000';
try {
await Promise.race([testClient.paths.getEmpty('bad'), timeoutPromise(1000)]);
assert.fail('');
} catch (error) {
should.exist(error);
should(error).not.be.instanceof(assert.AssertionError);
}

try {
await Promise.race([testClient.paths.getEmpty(null), timeoutPromise(1000)]);
} catch (error) {
should.exist(error);
should(error).not.be.instanceof(assert.AssertionError);
}
});
});
Expand Down

0 comments on commit 7fa1c20

Please sign in to comment.