sandwich/demos/demo-golden/app/Main.hs
Tom McLaughlin d1c39059ad Golden
2022-07-17 22:01:16 -07:00

16 lines
324 B
Haskell

module Main where
import Test.Sandwich
import Test.Sandwich.Golden
goldenDemo :: TopSpec
goldenDemo = describe "Simple tests" $ do
describe "myStringFunc" $
golden $ goldenString "myStringFunc" (myStringFunc ())
myStringFunc _ = "foo"
main :: IO ()
main = runSandwichWithCommandLineArgs defaultOptions goldenDemo