Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
amitaibu committed Oct 6, 2024
1 parent 04c8a65 commit 600d9fe
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Test/FileStorage/ControllerFunctionsSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,20 @@ import Data.Time.Clock (getCurrentTime, addUTCTime)
import Network.Wai as Wai (defaultRequest)
import Network.Wai.Parse (FileInfo(..))
import IHP.Controller.RequestContext
import IHP.FileStorage.Config
import qualified IHP.FrameworkConfig as Config


tests :: Spec
tests = describe "IHP.FileStorage.ControllerFunctions" $ do
let withFrameworkConfig = IHP.FrameworkConfig.withFrameworkConfig (pure ())

let config :: ConfigBuilder
config = do
initStaticDirStorage

let withFrameworkConfig = IHP.FrameworkConfig.withFrameworkConfig config


describe "storeFileWithOptions" $ do
it "returns the objectPath without the baseUrl" $ do
withSystemTempDirectory "ihp-test" $ \tempDir -> do
Expand Down Expand Up @@ -61,4 +71,8 @@ createControllerContext frameworkConfig = do
request = Wai.defaultRequest
requestContext = RequestContext { request, respond = error "respond", requestBody, frameworkConfig = frameworkConfig }
let ?requestContext = requestContext
newControllerContext
newControllerContext




0 comments on commit 600d9fe

Please sign in to comment.