Skip to content

Commit

Permalink
chore: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed May 5, 2024
1 parent 338839a commit 1baaf8a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions pkg/report/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ func TestReportGeneratorWithVoteError(t *testing.T) {
ProposalVotes: map[string]state.WalletVotes{
"proposal": {
Proposal: types.Proposal{
ID: "proposal",
ID: "proposal",
Status: types.ProposalStatusVoting,
},
Votes: map[string]state.ProposalVote{
"wallet": {
Expand Down Expand Up @@ -92,7 +93,8 @@ func TestReportGeneratorWithNotVoted(t *testing.T) {
ProposalVotes: map[string]state.WalletVotes{
"proposal": {
Proposal: types.Proposal{
ID: "proposal",
ID: "proposal",
Status: types.ProposalStatusVoting,
},
Votes: map[string]state.ProposalVote{
"wallet": {},
Expand Down Expand Up @@ -126,7 +128,8 @@ func TestReportGeneratorWithVoted(t *testing.T) {
ProposalVotes: map[string]state.WalletVotes{
"proposal": {
Proposal: types.Proposal{
ID: "proposal",
ID: "proposal",
Status: types.ProposalStatusVoting,
},
Votes: map[string]state.ProposalVote{
"wallet": {},
Expand All @@ -142,7 +145,8 @@ func TestReportGeneratorWithVoted(t *testing.T) {
ProposalVotes: map[string]state.WalletVotes{
"proposal": {
Proposal: types.Proposal{
ID: "proposal",
ID: "proposal",
Status: types.ProposalStatusVoting,
},
Votes: map[string]state.ProposalVote{
"wallet": {
Expand Down Expand Up @@ -180,7 +184,8 @@ func TestReportGeneratorWithRevoted(t *testing.T) {
ProposalVotes: map[string]state.WalletVotes{
"proposal": {
Proposal: types.Proposal{
ID: "proposal",
ID: "proposal",
Status: types.ProposalStatusVoting,
},
Votes: map[string]state.ProposalVote{
"wallet": {
Expand All @@ -200,7 +205,8 @@ func TestReportGeneratorWithRevoted(t *testing.T) {
ProposalVotes: map[string]state.WalletVotes{
"proposal": {
Proposal: types.Proposal{
ID: "proposal",
ID: "proposal",
Status: types.ProposalStatusVoting,
},
Votes: map[string]state.ProposalVote{
"wallet": {
Expand Down

0 comments on commit 1baaf8a

Please sign in to comment.