Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ly0va committed Jun 30, 2021
1 parent 381b931 commit 5731b25
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions core/tests/ts-tests/tests/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,15 @@ Tester.prototype.testSwapMissingSignatures = async function (

// first, try submitting without eth signatures
signedSwap.ethereumSignature = null;
let swap = await wallet.submitSignedTransaction(signedSwap, this.syncProvider);
await expectThrow(swap.awaitReceipt(), 'MissingEthSignature');
await expectThrow(wallet.submitSignedTransaction(signedSwap, this.syncProvider), 'MissingEthSignature');

// then, try submitting without eth signatures for orders
signedSwap.ethereumSignature = ethSignatures[0];
swap = await wallet.submitSignedTransaction(signedSwap, this.syncProvider);
await expectThrow(swap.awaitReceipt(), 'MissingEthSignature');
await expectThrow(wallet.submitSignedTransaction(signedSwap, this.syncProvider), 'MissingEthSignature');

// then, try submitting empty eth signatures for orders
signedSwap.ethereumSignature = [ethSignatures[0], null, null];
swap = await wallet.submitSignedTransaction(signedSwap, this.syncProvider);
await expectThrow(swap.awaitReceipt(), 'MissingEthSignature');
await expectThrow(wallet.submitSignedTransaction(signedSwap, this.syncProvider), 'MissingEthSignature');
};

Tester.prototype.testSwapNFT = async function (
Expand Down

0 comments on commit 5731b25

Please sign in to comment.