mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-27 21:29:55 +03:00
Add additional parameter to test start function.
This commit is contained in:
parent
44b5fad025
commit
229a8c4445
@ -688,7 +688,24 @@ startWithHttpCache :
|
||||
-> List ( Request.Request, String )
|
||||
-> List ( List String, StaticHttp.Request a )
|
||||
-> ProgramTest Main.Model Main.Msg (Effect PathKey)
|
||||
startWithHttpCache documentBodyResult staticHttpCache pages =
|
||||
startWithHttpCache =
|
||||
startLowLevel (StaticHttp.succeed [])
|
||||
|
||||
|
||||
startLowLevel :
|
||||
StaticHttp.Request
|
||||
(List
|
||||
(Result String
|
||||
{ path : List String
|
||||
, content : String
|
||||
}
|
||||
)
|
||||
)
|
||||
-> Result String ()
|
||||
-> List ( Request.Request, String )
|
||||
-> List ( List String, StaticHttp.Request a )
|
||||
-> ProgramTest Main.Model Main.Msg (Effect PathKey)
|
||||
startLowLevel generateFiles documentBodyResult staticHttpCache pages =
|
||||
let
|
||||
document =
|
||||
Document.fromList
|
||||
@ -719,7 +736,7 @@ startWithHttpCache documentBodyResult staticHttpCache pages =
|
||||
{ toJsPort = toJsPort
|
||||
, fromJsPort = fromJsPort
|
||||
, manifest = manifest
|
||||
, generateFiles = \_ -> StaticHttp.succeed []
|
||||
, generateFiles = \_ -> generateFiles
|
||||
, init = \_ -> ( (), Cmd.none )
|
||||
, update = \_ _ -> ( (), Cmd.none )
|
||||
, view =
|
||||
|
Loading…
Reference in New Issue
Block a user