Skip to content

Commit

Permalink
chore: remove t.plan that was there unintentionally from prior tests
Browse files Browse the repository at this point in the history
  • Loading branch information
katelynsills committed Sep 2, 2020
1 parent 2cca892 commit a4b2dc1
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions packages/zoe/test/unitTests/contracts/test-zcf.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import fakeVatAdmin from './fakeVatAdmin';
const contractRoot = `${__dirname}/zcfTesterContract`;

test(`zoe - zcfSeat.kickOut() doesn't throw`, async t => {
t.plan(1);
const { moolaIssuer, simoleanIssuer } = setup();
const zoe = makeZoe(fakeVatAdmin);

Expand Down Expand Up @@ -50,22 +49,18 @@ test(`zoe - zcfSeat.kickOut() doesn't throw`, async t => {
throw secondSeat.kickOut(new Error('kicked out second'));
};

const invitation1 = zcf.makeInvitation(grabSeat, 'seat1');
const invitation2 = zcf.makeInvitation(kickOutSeat, 'seat2');
const invitation1 = await zcf.makeInvitation(grabSeat, 'seat1');
const invitation2 = await zcf.makeInvitation(kickOutSeat, 'seat2');

const userSeat1 = await E(zoe).offer(invitation1);
const userSeat2 = await E(zoe).offer(invitation2);

t.is(await E(userSeat1).getOfferResult(), 'ok', `userSeat1 offer result`);

// await E(userSeat2).getPayouts();
// Results in "Unhandled rejection"
// E(userSeat2).getOfferResult();
t.deepEqual(await E(userSeat2).getPayouts(), {});

t.deepEqual(await E(userSeat1).getPayouts(), {});

await t.throwsAsync(() => E(userSeat2).getOfferResult());
// await t.throwsAsync(() => E(userSeat1).tryExit(), {
// message: 'seat has been exited',
// });
await t.throwsAsync(E(userSeat2).getOfferResult());
await t.throwsAsync(() => E(userSeat1).tryExit(), {
message: 'seat has been exited',
});
});

0 comments on commit a4b2dc1

Please sign in to comment.