From 7fa1c20a937c63bcc0e4792ec3abd3938641b733 Mon Sep 17 00:00:00 2001 From: Rikki Gibson Date: Wed, 16 May 2018 16:26:07 -0700 Subject: [PATCH] Fail tests when catching an AssertionError --- test/azure/azureCustomBaseUri.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/azure/azureCustomBaseUri.ts b/test/azure/azureCustomBaseUri.ts index 9098140d20ff..16cb95aed665 100644 --- a/test/azure/azureCustomBaseUri.ts +++ b/test/azure/azureCustomBaseUri.ts @@ -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); } }); });