{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Handler.HomeSpec (spec) where

import TestImport

spec :: Spec
spec = withApp $ do
    describe "Homepage" $ do
        it "loads the index and checks it looks right" $ do
          request $ do
            setMethod "GET"
            setUrl HomeR
            addRequestHeader ("Accept-Language", "de")
          statusIs 200
          htmlAnyContain "h1" "Aktuelle Termine"
