mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-24 06:54:03 +03:00
Fix types in test.
This commit is contained in:
parent
e99fc5570d
commit
e3bab7392c
@ -12,6 +12,7 @@ import Html
|
||||
import Json.Decode as JD
|
||||
import Json.Encode as Encode
|
||||
import OptimizedDecoder as Decode exposing (Decoder)
|
||||
import PageServerResponse
|
||||
import Pages.ContentCache as ContentCache exposing (ContentCache)
|
||||
import Pages.Internal.NotFoundReason
|
||||
import Pages.Internal.Platform.Cli exposing (..)
|
||||
@ -1026,7 +1027,7 @@ startLowLevel apiRoutes staticHttpCache pages =
|
||||
, update = \_ _ _ _ _ -> ( (), Cmd.none )
|
||||
, basePath = []
|
||||
, data =
|
||||
\(Route pageRoute) ->
|
||||
\isAvailable (Route pageRoute) ->
|
||||
let
|
||||
thing : Maybe (DataSource a)
|
||||
thing =
|
||||
@ -1040,7 +1041,7 @@ startLowLevel apiRoutes staticHttpCache pages =
|
||||
in
|
||||
case thing of
|
||||
Just request ->
|
||||
request |> DataSource.map (\_ -> ())
|
||||
request |> DataSource.map (\_ -> PageServerResponse.RenderPage ())
|
||||
|
||||
Nothing ->
|
||||
Debug.todo <| "Couldn't find page: " ++ pageRoute ++ "\npages: " ++ Debug.toString pages
|
||||
@ -1183,7 +1184,7 @@ startWithRoutes pageToLoad staticRoutes staticHttpCache pages =
|
||||
, update = \_ _ _ _ _ -> ( (), Cmd.none )
|
||||
, basePath = []
|
||||
, data =
|
||||
\(Route pageRoute) ->
|
||||
\isAvailable (Route pageRoute) ->
|
||||
let
|
||||
thing : Maybe (DataSource a)
|
||||
thing =
|
||||
@ -1197,7 +1198,7 @@ startWithRoutes pageToLoad staticRoutes staticHttpCache pages =
|
||||
in
|
||||
case thing of
|
||||
Just request ->
|
||||
request |> DataSource.map (\_ -> ())
|
||||
request |> DataSource.map (\_ -> PageServerResponse.RenderPage ())
|
||||
|
||||
Nothing ->
|
||||
DataSource.fail <| "Couldn't find page: " ++ pageRoute ++ "\npages: " ++ Debug.toString pages
|
||||
|
Loading…
Reference in New Issue
Block a user