From a4b2dc1168640f9e24c7ab5768313b05a97995a1 Mon Sep 17 00:00:00 2001 From: Kate Sills Date: Tue, 1 Sep 2020 17:57:02 -0700 Subject: [PATCH] chore: remove t.plan that was there unintentionally from prior tests --- .../zoe/test/unitTests/contracts/test-zcf.js | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/packages/zoe/test/unitTests/contracts/test-zcf.js b/packages/zoe/test/unitTests/contracts/test-zcf.js index 55620f63bb8..c0989993a05 100644 --- a/packages/zoe/test/unitTests/contracts/test-zcf.js +++ b/packages/zoe/test/unitTests/contracts/test-zcf.js @@ -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); @@ -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', + }); });