Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing ChallengeFacet #164

Open
youngkidwarrior opened this issue Mar 25, 2021 · 0 comments
Open

Testing ChallengeFacet #164

youngkidwarrior opened this issue Mar 25, 2021 · 0 comments
Assignees
Labels
buidler Shenanigan contracts
Milestone

Comments

@youngkidwarrior
Copy link
Member

youngkidwarrior commented Mar 25, 2021

Write tests for Challenge Contract

Challenge Test suite

  1. Create Challenge
  • Call: createChallenge(createChallenge(''ipfs://1", 'ipfs://2', 2, 100))
  • ChallengeFacet should emit ChallengeCreated event when createChallenge Function is called
  1. Challenge must have > 2 options
  • Call: createChallenge(createChallenge('ipfs://1', ''ipfs://2", 1, 100))
  • ChallengeFacet should revert with message "Challenge must have at least two teams"
  1. Challenge must have more than 0 limit
  • Call: createChallenge(createChallenge('ipfs://1', ''ipfs://2", 1, 0))
  • ChallengeFacet should revert with message "Challenge must mint at least one Challenge Token"
@youngkidwarrior youngkidwarrior added the buidler Shenanigan contracts label Mar 25, 2021
@youngkidwarrior youngkidwarrior self-assigned this Mar 25, 2021
@youngkidwarrior youngkidwarrior added this to the Alpha milestone Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buidler Shenanigan contracts
Projects
None yet
Development

No branches or pull requests

1 participant