mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 06:05:31 +03:00
Delete temporary test harness.
This commit is contained in:
parent
36e8a1f8cd
commit
99da8d8ebe
@ -1,33 +0,0 @@
|
||||
module ElmToHtmlTests exposing (..)
|
||||
|
||||
import ElmHtml.InternalTypes
|
||||
import ElmHtml.ToString
|
||||
import Expect
|
||||
import Json.Decode
|
||||
import Test exposing (describe, test)
|
||||
|
||||
|
||||
all =
|
||||
describe "ElmToHtml"
|
||||
[ test "lazy" <|
|
||||
\() ->
|
||||
{-
|
||||
- "$": 0,
|
||||
- "a": "<script></script> is unsafe in JSON unless it is escaped properly.\n"
|
||||
|
||||
-}
|
||||
"""
|
||||
{"$":5,"l":[null,{"$":"#0"}]}
|
||||
"""
|
||||
|> Json.Decode.decodeString (ElmHtml.InternalTypes.decodeElmHtml (\_ _ -> Json.Decode.succeed ()))
|
||||
|> Result.map ElmHtml.ToString.nodeToString
|
||||
|> Expect.equal (Ok "HELLO")
|
||||
, test "no lazys" <|
|
||||
\() ->
|
||||
"""
|
||||
{"$":0,"a":"HELLO"}
|
||||
"""
|
||||
|> Json.Decode.decodeString (ElmHtml.InternalTypes.decodeElmHtml (\_ _ -> Json.Decode.succeed ()))
|
||||
|> Result.map ElmHtml.ToString.nodeToString
|
||||
|> Expect.equal (Ok "HELLO")
|
||||
]
|
Loading…
Reference in New Issue
Block a user