Skip to content

Commit

Permalink
feat: add test to verify get-vote-period returns none before vote con…
Browse files Browse the repository at this point in the history
…cludes
  • Loading branch information
whoabuddy committed Oct 29, 2024
1 parent a23561b commit e5e8e57
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/proposals/ccip025-extend-sunset-period-3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,24 @@ Clarinet.test({
},
});

Clarinet.test({
name: "ccip-025: get-vote-period returns none before vote concludes",
fn(chain: Chain, accounts: Map<string, Account>) {
// arrange
const sender = accounts.get("deployer")!;
const ccip025 = new CCIP025ExtendDirectExecuteSunsetPeriod(chain, sender);

// initialize contracts
constructAndPassProposal(chain, accounts, PROPOSALS.TEST_CCIP025_EXTEND_SUNSET_PERIOD_3_001);

// act
const votePeriod = ccip025.getVotePeriod().result;

// assert
votePeriod.expectNone();
},
});

Clarinet.test({
name: "ccip-025: read-only functions return expected values",
fn(chain: Chain, accounts: Map<string, Account>) {
Expand Down

0 comments on commit e5e8e57

Please sign in to comment.