mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-23 17:53:35 +03:00
Reorganize test files for the core internals
This commit is contained in:
parent
ec4044826b
commit
30eabfde39
@ -1,4 +1,4 @@
|
|||||||
module Dependencies exposing (elmCore, elmHtml)
|
module Fixtures.Dependencies exposing (elmCore, elmHtml)
|
||||||
|
|
||||||
import Elm.Docs
|
import Elm.Docs
|
||||||
import Elm.Project
|
import Elm.Project
|
@ -1,6 +1,6 @@
|
|||||||
module NoHtmlButtonTest exposing (all)
|
module NoHtmlButtonTest exposing (all)
|
||||||
|
|
||||||
import Dependencies
|
import Fixtures.Dependencies as Dependencies
|
||||||
import NoHtmlButton exposing (rule)
|
import NoHtmlButton exposing (rule)
|
||||||
import Review.Project as Project exposing (Project)
|
import Review.Project as Project exposing (Project)
|
||||||
import Review.Test exposing (ReviewResult)
|
import Review.Test exposing (ReviewResult)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
module FixTest exposing (all)
|
module Review.Fix.FixTest exposing (all)
|
||||||
|
|
||||||
import Expect
|
import Expect
|
||||||
import Review.Fix as Fix
|
import Review.Fix as Fix exposing (Fix)
|
||||||
import Test exposing (Test, describe, test)
|
import Test exposing (Test, describe, test)
|
||||||
|
|
||||||
|
|
||||||
@ -17,6 +17,7 @@ all =
|
|||||||
a = Debug.log "foo" 1
|
a = Debug.log "foo" 1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
fixes : List Fix
|
||||||
fixes =
|
fixes =
|
||||||
[ Fix.removeRange
|
[ Fix.removeRange
|
||||||
{ start = { row = 2, column = 5 }
|
{ start = { row = 2, column = 5 }
|
||||||
@ -37,6 +38,7 @@ a = 1
|
|||||||
some_var = 1
|
some_var = 1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
fixes : List Fix
|
||||||
fixes =
|
fixes =
|
||||||
[ Fix.replaceRangeBy
|
[ Fix.replaceRangeBy
|
||||||
{ start = { row = 2, column = 1 }
|
{ start = { row = 2, column = 1 }
|
||||||
@ -58,6 +60,7 @@ someVar = 1
|
|||||||
a = 1
|
a = 1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
fixes : List Fix
|
||||||
fixes =
|
fixes =
|
||||||
[ Fix.insertAt
|
[ Fix.insertAt
|
||||||
{ row = 2, column = 5 }
|
{ row = 2, column = 5 }
|
||||||
@ -77,6 +80,7 @@ a = Debug.log "foo" 1
|
|||||||
a = 1
|
a = 1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
fixes : List Fix
|
||||||
fixes =
|
fixes =
|
||||||
[ Fix.replaceRangeBy
|
[ Fix.replaceRangeBy
|
||||||
{ start = { row = 2, column = 1 }
|
{ start = { row = 2, column = 1 }
|
||||||
@ -113,6 +117,7 @@ a : Int
|
|||||||
a = 1
|
a = 1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
fixes : List Fix
|
||||||
fixes =
|
fixes =
|
||||||
[ Fix.removeRange
|
[ Fix.removeRange
|
||||||
{ start = { row = 4, column = 1 }
|
{ start = { row = 4, column = 1 }
|
||||||
@ -135,6 +140,7 @@ someCode = 2
|
|||||||
some_var = 1
|
some_var = 1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
fixes : List Fix
|
||||||
fixes =
|
fixes =
|
||||||
[ Fix.replaceRangeBy
|
[ Fix.replaceRangeBy
|
||||||
{ start = { row = 2, column = 1 }
|
{ start = { row = 2, column = 1 }
|
||||||
@ -158,6 +164,7 @@ some_var =
|
|||||||
1
|
1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
fixes : List Fix
|
||||||
fixes =
|
fixes =
|
||||||
[ Fix.replaceRangeBy
|
[ Fix.replaceRangeBy
|
||||||
{ start = { row = 2, column = 1 }
|
{ start = { row = 2, column = 1 }
|
||||||
@ -180,6 +187,7 @@ some_var =
|
|||||||
1
|
1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
fixes : List Fix
|
||||||
fixes =
|
fixes =
|
||||||
[ Fix.replaceRangeBy
|
[ Fix.replaceRangeBy
|
||||||
{ start = { row = 2, column = 1 }
|
{ start = { row = 2, column = 1 }
|
||||||
@ -205,6 +213,7 @@ a : Int
|
|||||||
a = 1
|
a = 1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
fixes : List Fix
|
||||||
fixes =
|
fixes =
|
||||||
[ Fix.insertAt
|
[ Fix.insertAt
|
||||||
{ row = 4, column = 1 }
|
{ row = 4, column = 1 }
|
@ -1,4 +1,4 @@
|
|||||||
module Review.RuleElmJsonErrorsTest exposing (all)
|
module Review.Rule.ElmJsonErrorsTest exposing (all)
|
||||||
|
|
||||||
import Elm.Package
|
import Elm.Package
|
||||||
import Elm.Project
|
import Elm.Project
|
@ -1,4 +1,4 @@
|
|||||||
module Review.RuleVisitorsOrderTest exposing (all)
|
module Review.Rule.VisitorsOrderTest exposing (all)
|
||||||
|
|
||||||
import Elm.Syntax.Declaration exposing (Declaration)
|
import Elm.Syntax.Declaration exposing (Declaration)
|
||||||
import Elm.Syntax.Expression exposing (Expression)
|
import Elm.Syntax.Expression exposing (Expression)
|
@ -1,4 +1,4 @@
|
|||||||
module WithDeclarationListVisitorTest exposing (all)
|
module Review.Rule.WithDeclarationListVisitorTest exposing (all)
|
||||||
|
|
||||||
import Elm.Syntax.Declaration as Declaration exposing (Declaration)
|
import Elm.Syntax.Declaration as Declaration exposing (Declaration)
|
||||||
import Elm.Syntax.Node as Node exposing (Node)
|
import Elm.Syntax.Node as Node exposing (Node)
|
@ -1,4 +1,4 @@
|
|||||||
module ErrorMessageTest exposing (all)
|
module Review.Test.ErrorMessageTest exposing (all)
|
||||||
|
|
||||||
import Elm.Syntax.Range exposing (Range)
|
import Elm.Syntax.Range exposing (Range)
|
||||||
import Expect exposing (Expectation)
|
import Expect exposing (Expectation)
|
@ -1,10 +1,10 @@
|
|||||||
module Review.ScopeTest exposing (all)
|
module ScopeTest exposing (all)
|
||||||
|
|
||||||
import Dependencies
|
|
||||||
import Elm.Syntax.Declaration as Declaration exposing (Declaration)
|
import Elm.Syntax.Declaration as Declaration exposing (Declaration)
|
||||||
import Elm.Syntax.Expression as Expression exposing (Expression)
|
import Elm.Syntax.Expression as Expression exposing (Expression)
|
||||||
import Elm.Syntax.Node as Node exposing (Node(..))
|
import Elm.Syntax.Node as Node exposing (Node(..))
|
||||||
import Elm.Syntax.TypeAnnotation as TypeAnnotation exposing (TypeAnnotation)
|
import Elm.Syntax.TypeAnnotation as TypeAnnotation exposing (TypeAnnotation)
|
||||||
|
import Fixtures.Dependencies as Dependencies
|
||||||
import Review.Project as Project exposing (Project)
|
import Review.Project as Project exposing (Project)
|
||||||
import Review.Rule as Rule exposing (Error, Rule)
|
import Review.Rule as Rule exposing (Error, Rule)
|
||||||
import Review.Scope as Scope
|
import Review.Scope as Scope
|
Loading…
Reference in New Issue
Block a user