diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/assert_test.ts | 5 | ||||
-rw-r--r-- | test/exchange_wrapper_test.ts | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/test/assert_test.ts b/test/assert_test.ts index 560ef06d4..6b623eaad 100644 --- a/test/assert_test.ts +++ b/test/assert_test.ts @@ -20,8 +20,9 @@ describe('Assertion library', () => { const validUnrelatedAddress = '0x8b0292b11a196601eddce54b665cafeca0347d42'; const varName = 'address'; return expect(assert.isSenderAddressAsync(varName, validUnrelatedAddress, (zeroEx as any).web3Wrapper)) - .to.be.rejectedWith(`Specified ${varName} ${validUnrelatedAddress} \ - isn't available through the supplied web3 instance`); + .to.be.rejectedWith( + `Specified ${varName} ${validUnrelatedAddress} isn't available through the supplied web3 instance`, + ); }); it('doesn\'t throw if address is available', async () => { const availableAddress = (await zeroEx.getAvailableAddressesAsync())[0]; diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index 59420fc55..48d10c1e4 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -152,8 +152,9 @@ describe('ExchangeWrapper', () => { const signedOrder = await fillScenarios.createFillableSignedOrderAsync( makerTokenAddress, takerTokenAddress, makerAddress, takerAddress, fillableAmount, ); + const nonExistentSenderAddress = userAddresses[6]; return expect(zeroEx.exchange.fillOrderAsync( - signedOrder, fillTakerAmount, shouldCheckTransfer, takerAddress, + signedOrder, fillTakerAmount, shouldCheckTransfer, nonExistentSenderAddress, )).to.be.rejectedWith(ExchangeContractErrs.TRANSACTION_SENDER_IS_NOT_FILL_ORDER_TAKER); }); it('should throw when order is expired', async () => { |