From abd6fbfa648a540342d9c183fc8f5b36248b6055 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 6 Jun 2017 12:50:18 +0200 Subject: Use variable name in assertin message --- test/assert_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/assert_test.ts') diff --git a/test/assert_test.ts b/test/assert_test.ts index c8f698730..147c9832f 100644 --- a/test/assert_test.ts +++ b/test/assert_test.ts @@ -20,7 +20,7 @@ describe('Assertion library', () => { const validUnrelatedAddress = '0x8b0292b11a196601eddce54b665cafeca0347d42'; const varName = 'account'; return expect(assert.isSenderAddressHexAsync(varName, validUnrelatedAddress, (zeroEx as any).web3Wrapper)) - .to.be.rejectedWith(`Specified sender account ${validUnrelatedAddress} \ + .to.be.rejectedWith(`Specified ${varName} ${validUnrelatedAddress} \ isn't available through the supplied web3 instance`); }); it('doesn\'t throw if account is available', async () => { -- cgit