mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 04:43:03 +03:00
Fix test.
This commit is contained in:
parent
dd70e0ae8c
commit
5a88903f4e
@ -20,6 +20,7 @@ import Pages.PagePath as PagePath
|
||||
import Pages.ProgramConfig exposing (ProgramConfig)
|
||||
import Pages.StaticHttp.Request as Request
|
||||
import PagesHttp
|
||||
import Path
|
||||
import ProgramTest exposing (ProgramTest)
|
||||
import Regex
|
||||
import RenderRequest
|
||||
@ -857,11 +858,7 @@ startLowLevel apiRoutes documentBodyResult staticHttpCache pages =
|
||||
pages
|
||||
|> Dict.fromList
|
||||
|> Dict.get
|
||||
(page.path
|
||||
|> PagePath.toString
|
||||
|> String.split "/"
|
||||
|> List.filter (\pathPart -> pathPart /= "")
|
||||
)
|
||||
(page.path |> Path.toSegments)
|
||||
in
|
||||
case thing of
|
||||
Just _ ->
|
||||
|
Loading…
Reference in New Issue
Block a user