Skip to content

Commit

Permalink
fix: flip existing test
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jan 18, 2022
1 parent 9cf9eee commit 0a7bc9f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/zoe/test/unitTests/zcf/test-allStagedSeatsUsed.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ test(`allStagedSeatsUsed should be asserted`, async t => {

t.true(zcfSeat3.hasStagedAllocation());

// zcfSeat3 has a staged allocation but was not included in reallocate
t.throws(() => zcf.reallocate(zcfSeat1, zcfSeat2), {
message:
'At least one seat has a staged allocation but was not included in the call to reallocate',
});
// zcfSeat3 has a staged allocation but was not included in reallocate.
// This is now legal, so we now test that this reallocate does
// not throw.
t.notThrows(() => zcf.reallocate(zcfSeat1, zcfSeat2));
});

0 comments on commit 0a7bc9f

Please sign in to comment.