Skip to content

Commit

Permalink
add test for getNext before protocol has started
Browse files Browse the repository at this point in the history
  • Loading branch information
JCSanPedro committed Aug 8, 2024
1 parent c9e38d4 commit fae0dfb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/protocolTimeManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ describe('Protocol time manager', () => {
);
});

it('can get next before protocol has started', async () => {
const [nextCycle, nextPeriod] = await protocolTimeManager.getNext();

expect(nextCycle).to.equal(1n);
expect(nextPeriod).to.equal(0n);
});

it('can set period duration before protocol has started', async () => {
await protocolTimeManager.setPeriodDuration(500);

Expand Down

0 comments on commit fae0dfb

Please sign in to comment.