1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-11-23 11:54:36 +03:00
applied-fp-course/level04/tests/Test.hs
Sean Chalmers b69770bdbc Name changes to Applied name.
Wording and phrasing updates. Some functions changed around a bit to
be slightly less 'weird'.
2017-09-05 13:53:05 +10:00

30 lines
879 B
Haskell

{-# LANGUAGE OverloadedStrings #-}
module Main where
import Test.Hspec
import Test.Hspec.Wai
import qualified System.Exit as Exit
import qualified Data.ByteString.Lazy.Char8 as LBS8
import qualified FirstApp.Conf as Conf
import qualified FirstApp.Main as Main
main :: IO ()
main = do
-- We're still going to be running our application so we need to load the config.
cfgE <- Conf.parseOptions "appconfig.json"
case cfgE of
Left err ->
-- Die loudly if the config couldn't be loaded. Ensure we exit with a
-- failure code to trip up anything that might be watching our run status.
error "Config failure error handling not implemented"
Right cfg -> do
let app' = undefined
hspec . undefined app' $ do
describe undefined $ do
error "test undefined"