From f663aad6fcc8f82e0ac189ebb71482680399cd96 Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Sun, 18 Jun 2017 14:06:36 +0200 Subject: [PATCH] Re-enable disabled test --- tests/NoDebugTest.elm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/NoDebugTest.elm b/tests/NoDebugTest.elm index 80a3e6d6..335f0b85 100644 --- a/tests/NoDebugTest.elm +++ b/tests/NoDebugTest.elm @@ -74,11 +74,10 @@ tests = \() -> testRule "a = { foo = Debug.log z y }" |> expectErrors [ error "Forbidden use of Debug" ] - -- TODO elm-ast doesn't handle record update expressions - -- , test "should report Debug in an record update expression" <| - -- \() -> - -- testRule "a = { model | foo = Debug.log z y }" - -- |> expectErrors [ error "Forbidden use of Debug" ] + , test "should report Debug in an record update expression" <| + \() -> + testRule "a = { model | foo = Debug.log z y }" + |> expectErrors [ error "Forbidden use of Debug" ] , test "should report Debug in an lambda expression" <| \() -> testRule "a = (\\foo -> Debug.log z foo)"