Created
December 24, 2021 14:11
-
-
Save jbrains/ecef3b2a3397740a8496b66f0ad82941 to your computer and use it in GitHub Desktop.
WANTED: A more concise way to execute a side effect in a test without checking its result
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
checkSellMultipleItems :: Spec Unit | |
checkSellMultipleItems = | |
describe "Sell Multiple Items" do | |
it "happy path" do | |
(POS.handleCommand $ TextCommand "12345") `shouldSatisfy` (const true) | |
(POS.handleCommand $ TextCommand "total") `shouldEqual` "Total: CAD 27.50" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparently I wanted
discard
.