Last active
September 9, 2019 18:54
-
-
Save jonfriskics/384cb7713eec937857fdad07722eb48f to your computer and use it in GitHub Desktop.
Example Mocha.js Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("QuizQuestion.js", () => { | |
it("should have a method named handleClick with the correct parameter @quiz-question-should-have-handle-click", () => { | |
assert("CONDITION CHECKING IF HANDLECLICK EXISTS", "`QuizQuestion.js` does not contain a method named `handleClick`") | |
assert("CONDITION CHECKING HANDLECLICK PARAMETER", "`QuizQuestion.js does not have the method named `handleClick` with a parameter named `buttonText`") | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment