Skip to content

Commit

Permalink
chore: address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
katelynsills committed Aug 20, 2020
1 parent 9dc8f4e commit be99c67
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/zoe/test/unitTests/contracts/test-secondPriceAuction.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,15 @@ test('zoe - secondPriceAuction - alice tries to exit', async t => {
// Bob bids
const bobSeat = await zoe.offer(bobInvitation, bobProposal, bobPayments);

t.equals(
await E(bobSeat).getOfferResult(),
'The offer has been accepted. Once the contract has been completed, please check your payout',
);

// Bob exits early, but this does not stop the auction.
bobSeat.tryExit();
await E(bobSeat).tryExit();
const bobMoolaPayout = await bobSeat.getPayout('Asset');
const bobSimoleanPayout = await bobSeat.getPayout('Bid');

const carolInvitation = await E(makeInvitationObj).makeBidInvitation();

Expand All @@ -326,8 +333,7 @@ test('zoe - secondPriceAuction - alice tries to exit', async t => {

const aliceMoolaPayout = await aliceSeat.getPayout('Asset');
const aliceSimoleanPayout = await aliceSeat.getPayout('Ask');
const bobMoolaPayout = await bobSeat.getPayout('Asset');
const bobSimoleanPayout = await bobSeat.getPayout('Bid');

const carolMoolaPayout = await carolSeat.getPayout('Asset');
const carolSimoleanPayout = await carolSeat.getPayout('Bid');

Expand All @@ -336,7 +342,7 @@ test('zoe - secondPriceAuction - alice tries to exit', async t => {
t.deepEquals(
await moolaR.issuer.getAmountOf(aliceMoolaPayout),
moola(0),
`alice has no assets`,
`alice has no moola`,
);

// Alice got Carol's simoleans
Expand Down

0 comments on commit be99c67

Please sign in to comment.