From 5a88903f4eec81b4002d959d623835152eef62e3 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Sun, 23 May 2021 10:44:39 -0700 Subject: [PATCH] Fix test. --- tests/StaticHttpRequestsTests.elm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/StaticHttpRequestsTests.elm b/tests/StaticHttpRequestsTests.elm index 58423fc9..b60c66f9 100644 --- a/tests/StaticHttpRequestsTests.elm +++ b/tests/StaticHttpRequestsTests.elm @@ -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 _ ->