Skip to content

Commit

Permalink
Merge pull request Azure#87 from Azure/FixExceptionTests
Browse files Browse the repository at this point in the history
Fail tests when catching an AssertionError
  • Loading branch information
RikkiGibson authored May 17, 2018
2 parents 9ad3b6d + 7fa1c20 commit 5db48e5
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 5db48e5

Please sign in to comment.