From e5e8e57347287ae095aa0bdb958b9a8c314bb5e8 Mon Sep 17 00:00:00 2001 From: "Jason Schrader (aider)" Date: Tue, 29 Oct 2024 15:17:33 -0700 Subject: [PATCH] feat: add test to verify get-vote-period returns none before vote concludes --- .../ccip025-extend-sunset-period-3.test.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/proposals/ccip025-extend-sunset-period-3.test.ts b/tests/proposals/ccip025-extend-sunset-period-3.test.ts index 459b111..8533815 100644 --- a/tests/proposals/ccip025-extend-sunset-period-3.test.ts +++ b/tests/proposals/ccip025-extend-sunset-period-3.test.ts @@ -322,6 +322,24 @@ Clarinet.test({ }, }); +Clarinet.test({ + name: "ccip-025: get-vote-period returns none before vote concludes", + fn(chain: Chain, accounts: Map) { + // 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) {