-
Im a bit confused, I was writing tests for the checkUpKeep() function in Lesson 9 and when I ran the test I got the following output.
This is my checkUpkeepReturnsFalseIfItHasNobalance() function: function checkUpkeepReturnsFalseIfItHasNobalance() public {
vm.warp(block.timestamp + interval + 1);
vm.roll(block.number + 1);
(bool upKeepNeeded, ) = raffle.checkUpKeep("");
assert(!upKeepNeeded);
} I dont understand why there are 0 tests passed? |
Beta Was this translation helpful? Give feedback.
Answered by
pacelliv
Jul 13, 2023
Replies: 1 comment 1 reply
-
According to the docs functions need to be prefixed with the word Try with this name: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Abelaby
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the docs functions need to be prefixed with the word
test
to be run as test cases.Try with this name:
testCheckUpkeepReturnsFalseIfItHasNobalance
.