From 086e491b06a6b52a82fecb98d96f89e8b8c6202d Mon Sep 17 00:00:00 2001 From: Bram Date: Fri, 12 Apr 2024 14:30:33 +0200 Subject: [PATCH] Ignore decoder logs Specifically on Hashdict/Mashdict as they variate based on JSON input --- tests/Test/Tools/Hashdict.elm | 4 ++-- tests/Test/Tools/Mashdict.elm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Test/Tools/Hashdict.elm b/tests/Test/Tools/Hashdict.elm index 7eb3bbf..2243bf0 100644 --- a/tests/Test/Tools/Hashdict.elm +++ b/tests/Test/Tools/Hashdict.elm @@ -168,8 +168,8 @@ suite = |> Json.encode (Hashdict.coder .eventId Event.coder) |> E.encode indent |> D.decodeString (Json.decode <| Hashdict.coder .eventId Event.coder) - |> Result.map (Tuple.mapFirst Hashdict.toList) - |> Expect.equal (Ok ( Hashdict.toList hashdict, [] )) + |> Result.map (Tuple.first >> Hashdict.toList) + |> Expect.equal (Ok (Hashdict.toList hashdict)) ) ] ] diff --git a/tests/Test/Tools/Mashdict.elm b/tests/Test/Tools/Mashdict.elm index 0425dc0..ee93b99 100644 --- a/tests/Test/Tools/Mashdict.elm +++ b/tests/Test/Tools/Mashdict.elm @@ -198,8 +198,8 @@ suite = |> Json.encode (Mashdict.coder .stateKey Event.coder) |> E.encode indent |> D.decodeString (Json.decode <| Mashdict.coder .stateKey Event.coder) - |> Result.map (Tuple.mapFirst Mashdict.toList) - |> Expect.equal (Ok ( Mashdict.toList hashdict, [] )) + |> Result.map (Tuple.first >> Mashdict.toList) + |> Expect.equal (Ok (Mashdict.toList hashdict)) ) ] ]