Last active
April 26, 2022 20:51
-
-
Save mbjelac/237ee2f375aefba0b056807c27c21c3b to your computer and use it in GitHub Desktop.
multiple-asserts-bad_4
This file contains hidden or 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
test("turns on credit check", () => { | |
const result = initializeCreditThingy(42, "boo!!!"); | |
expect(result.creditCheck).toBe(true); | |
}); | |
test("does that other thing", () => { | |
const result = initializeCreditThingy(42, "boo!!!"); | |
expect(result.spamCounter).toBe(0); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment