Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit e80d3d1

Browse files
committed
fix error testing in taquito auction tests
1 parent 9fec7e2 commit e80d3d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/minter-contracts/test/auction/auction.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ describe('test NFT auction', () => {
124124

125125
$log.info(`Eve bids 11tz, a 10% raise of previous bid but less than a 10tz increase`);
126126
const opBid2 = nftAuctionEve.methods.bid(0).send({ amount : 11 });
127-
return expect(opBid2).rejects.toHaveProperty('message', 'INVALID_BID_AMOUNT');
127+
await expect(opBid2).rejects.toHaveProperty('message', 'INVALID_BID_AMOUNT');
128128
});
129129
test('place bid meeting opening price and then raise it by valid amount by min_raise but not min_raise_percent', async () => {
130130
$log.info(`Alice bids 200tz`);
@@ -134,7 +134,7 @@ describe('test NFT auction', () => {
134134

135135
$log.info(`Eve bids 210tz, a 10tz increase but less than a 10% raise of previous bid `);
136136
const opBid2 = nftAuctionEve.methods.bid(0).send({ amount : 210 });
137-
return expect(opBid2).rejects.toHaveProperty('message', 'INVALID_BID_AMOUNT');
137+
await expect(opBid2).rejects.toHaveProperty('message', 'INVALID_BID_AMOUNT');
138138
});
139139
test('bid too small should fail', async () => {
140140
$log.info(`Alice bids 20tz`);

0 commit comments

Comments
 (0)