mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-22 13:15:59 +03:00
Fix invalid Elm source code in tests
This commit is contained in:
parent
06237c7fc9
commit
5a82e53388
@ -139,8 +139,7 @@ button = 1
|
||||
\() ->
|
||||
testRuleWithHtmlDependency """
|
||||
import Html exposing (..)
|
||||
a = let
|
||||
button = 1
|
||||
a = let button = 1
|
||||
in button
|
||||
"""
|
||||
|> Review.Test.expectNoErrors
|
||||
@ -156,8 +155,7 @@ port button : (() -> msg) -> Sub msg
|
||||
\() ->
|
||||
testRuleWithHtmlDependency """
|
||||
import Html exposing (..)
|
||||
a = let
|
||||
button = 1
|
||||
a = let button = 1
|
||||
in button
|
||||
"""
|
||||
|> Review.Test.expectNoErrors
|
||||
@ -165,8 +163,7 @@ a = let
|
||||
\() ->
|
||||
testRuleWithHtmlDependency """
|
||||
import Html exposing (..)
|
||||
a = let
|
||||
button = 1
|
||||
a = let button = 1
|
||||
in 2
|
||||
b = button
|
||||
"""
|
||||
@ -176,7 +173,7 @@ b = button
|
||||
, details = details
|
||||
, under = "button"
|
||||
}
|
||||
|> Review.Test.atExactly { start = { row = 8, column = 5 }, end = { row = 8, column = 11 } }
|
||||
|> Review.Test.atExactly { start = { row = 7, column = 5 }, end = { row = 7, column = 11 } }
|
||||
]
|
||||
, test "should not report the use of `button` if it is shadowed by an accessible parameter" <|
|
||||
\() ->
|
||||
|
Loading…
Reference in New Issue
Block a user