add proposalCreation Sample test

This commit is contained in:
Emily Martins 2022-04-18 16:26:34 +02:00
parent 76911ed5d6
commit 862e9b6079
7 changed files with 267 additions and 12 deletions

View file

@ -0,0 +1,38 @@
{-# LANGUAGE QuasiQuotes #-}
{- |
Module : Spec.Proposal
Maintainer : emi@haskell.fyi
Description: Tests for Proposal policy and validator
Tests for Proposal policy and validator
-}
module Spec.Proposal (tests) where
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
import Agora.Proposal (proposalPolicy)
import Spec.Sample.Proposal qualified as Proposal
import Spec.Util (policySucceedsWith)
import Test.Tasty (TestTree, testGroup)
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- | Stake tests.
tests :: [TestTree]
tests =
[ testGroup
"policy"
[ policySucceedsWith
"stakeCreation"
(proposalPolicy Proposal.proposal)
()
Proposal.proposalCreation
]
]