aboutsummaryrefslogtreecommitdiff
path: root/specs/Specs/FooSpec.hs
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-11-07 12:25:47 +0530
committerAkshay Nair <phenax5@gmail.com>2025-11-08 17:09:25 +0530
commita16933476187a349d619ab29f73dbcae81c8cb24 (patch)
treeeab12977c61a2c3b9ac88b22637f5511c21f9d18 /specs/Specs/FooSpec.hs
parent6c3f7442b92f2fbf2308d93ece448cf3dd759a58 (diff)
downloaddaffm-a16933476187a349d619ab29f73dbcae81c8cb24.tar.gz
daffm-a16933476187a349d619ab29f73dbcae81c8cb24.zip
Show error messages (permission error + path not found + invalid command error)
Diffstat (limited to 'specs/Specs/FooSpec.hs')
-rw-r--r--specs/Specs/FooSpec.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/specs/Specs/FooSpec.hs b/specs/Specs/FooSpec.hs
index 24545f9..d79ce9e 100644
--- a/specs/Specs/FooSpec.hs
+++ b/specs/Specs/FooSpec.hs
@@ -52,7 +52,8 @@ test = do
describe "parseCommand" $ do
context "when given an invalid command" $ do
it "returns Nothing" $ do
- parseCommand "aklsdjijm" `shouldBe` Nothing
+ parseCommand "foobar arg1 arg2" `shouldBe` Just (CmdCustom "foobar" "arg1 arg2")
+
context "when empty command" $ do
it "returns Nothing" $ do
parseCommand "" `shouldBe` Nothing