mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 04:43:03 +03:00
Remove obsolete test case.
This commit is contained in:
parent
ec40fa4740
commit
16e78e8f31
@ -74,28 +74,6 @@ all =
|
||||
portData.is404
|
||||
|> Expect.false "Expected page to be found and rendered"
|
||||
|
||||
_ ->
|
||||
Expect.fail <| "Expected exactly 1 port of type PageProgress. Instead, got \n" ++ Debug.toString actualPorts
|
||||
)
|
||||
, test "data sources are not resolved 404 pages with matching route but not pre-rendered" <|
|
||||
\() ->
|
||||
startWithRoutes [ "post-2" ]
|
||||
[ [ "post-1" ]
|
||||
]
|
||||
[]
|
||||
[ ( [ "post-2" ]
|
||||
, DataSource.Http.get "https://api.github.com/repos/dillonkearns/elm-pages" starDecoder
|
||||
)
|
||||
]
|
||||
|> ProgramTest.expectOutgoingPortValues
|
||||
"toJsPort"
|
||||
(Codec.decoder (ToJsPayload.successCodecNew2 "" ""))
|
||||
(\actualPorts ->
|
||||
case actualPorts of
|
||||
[ ToJsPayload.PageProgress portData ] ->
|
||||
portData.is404
|
||||
|> Expect.true "Expected 404 not found page"
|
||||
|
||||
_ ->
|
||||
Expect.fail <| "Expected exactly 1 port of type PageProgress. Instead, got \n" ++ Debug.toString actualPorts
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user