Something went wrong. Try again.
A simple Discord bot framework built on discord-haskell
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041module Howdy.CommandSpec where
--import Data.Default (Default (def))import qualified Data.Text as Timport Data.Text.Arbitrary ()--import Howdy.Internal.Action.Commandimport Test.Hspec (Spec, describe, it, shouldBe)import Test.Hspec.QuickCheck (prop)
spec :: Specspec = pure ()
{-spec :: Specspec = do describe "Howdy.Internal.Command" $ do describe "alias" $ do it "sets the alias of a command" $ do build' (alias "alias") def `shouldBe` (def { alias = "alias" }, def)
prop "multiple aliases are appended" $ \x y -> build' (alias x >> alias y) def `shouldBe` build' (alias (x ++ y)) def
describe "desc" $ do it "sets the description of a command" $ do todo prop "multiple descriptions are an error" $ todo
describe "legacy" $ do it "overrides the identifier hash" $ command "a" (legacy "b") `shouldBe` (def { alias = ["a"], ident = (hash "b")}, def)
describe "permission" $ do it "sets the permission thingy" $ todo
describe "run" $ do it "sets the runner" $ todo -}