wasp/waspc/cli/test/TerminalTest.hs
2022-03-23 08:04:09 -04:00

13 lines
417 B
Haskell

module TerminalTest where
import Test.Tasty.Hspec
import Wasp.Cli.Terminal
( asWaspMessage,
)
-- TODO: Showing it can be done. Remove me when writing first real CLI test.
spec_terminalMessages :: Spec
spec_terminalMessages = do
it "can format messages of various kinds" $ do
asWaspMessage "Hello, world!" `shouldBe` "\n --- Hello, world! ---------------------------------------------------------------\n"