Reorganize test files for the core internals

This commit is contained in:
Jeroen Engels 2020-04-03 16:06:44 +02:00
parent ec4044826b
commit 30eabfde39
8 changed files with 19 additions and 10 deletions

View File

@ -1,4 +1,4 @@
module Dependencies exposing (elmCore, elmHtml)
module Fixtures.Dependencies exposing (elmCore, elmHtml)
import Elm.Docs
import Elm.Project

View File

@ -1,6 +1,6 @@
module NoHtmlButtonTest exposing (all)
import Dependencies
import Fixtures.Dependencies as Dependencies
import NoHtmlButton exposing (rule)
import Review.Project as Project exposing (Project)
import Review.Test exposing (ReviewResult)

View File

@ -1,7 +1,7 @@
module FixTest exposing (all)
module Review.Fix.FixTest exposing (all)
import Expect
import Review.Fix as Fix
import Review.Fix as Fix exposing (Fix)
import Test exposing (Test, describe, test)
@ -17,6 +17,7 @@ all =
a = Debug.log "foo" 1
"""
fixes : List Fix
fixes =
[ Fix.removeRange
{ start = { row = 2, column = 5 }
@ -37,6 +38,7 @@ a = 1
some_var = 1
"""
fixes : List Fix
fixes =
[ Fix.replaceRangeBy
{ start = { row = 2, column = 1 }
@ -58,6 +60,7 @@ someVar = 1
a = 1
"""
fixes : List Fix
fixes =
[ Fix.insertAt
{ row = 2, column = 5 }
@ -77,6 +80,7 @@ a = Debug.log "foo" 1
a = 1
"""
fixes : List Fix
fixes =
[ Fix.replaceRangeBy
{ start = { row = 2, column = 1 }
@ -113,6 +117,7 @@ a : Int
a = 1
"""
fixes : List Fix
fixes =
[ Fix.removeRange
{ start = { row = 4, column = 1 }
@ -135,6 +140,7 @@ someCode = 2
some_var = 1
"""
fixes : List Fix
fixes =
[ Fix.replaceRangeBy
{ start = { row = 2, column = 1 }
@ -158,6 +164,7 @@ some_var =
1
"""
fixes : List Fix
fixes =
[ Fix.replaceRangeBy
{ start = { row = 2, column = 1 }
@ -180,6 +187,7 @@ some_var =
1
"""
fixes : List Fix
fixes =
[ Fix.replaceRangeBy
{ start = { row = 2, column = 1 }
@ -205,6 +213,7 @@ a : Int
a = 1
"""
fixes : List Fix
fixes =
[ Fix.insertAt
{ row = 4, column = 1 }

View File

@ -1,4 +1,4 @@
module Review.RuleElmJsonErrorsTest exposing (all)
module Review.Rule.ElmJsonErrorsTest exposing (all)
import Elm.Package
import Elm.Project

View File

@ -1,4 +1,4 @@
module Review.RuleVisitorsOrderTest exposing (all)
module Review.Rule.VisitorsOrderTest exposing (all)
import Elm.Syntax.Declaration exposing (Declaration)
import Elm.Syntax.Expression exposing (Expression)

View File

@ -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.Node as Node exposing (Node)

View File

@ -1,4 +1,4 @@
module ErrorMessageTest exposing (all)
module Review.Test.ErrorMessageTest exposing (all)
import Elm.Syntax.Range exposing (Range)
import Expect exposing (Expectation)

View File

@ -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.Expression as Expression exposing (Expression)
import Elm.Syntax.Node as Node exposing (Node(..))
import Elm.Syntax.TypeAnnotation as TypeAnnotation exposing (TypeAnnotation)
import Fixtures.Dependencies as Dependencies
import Review.Project as Project exposing (Project)
import Review.Rule as Rule exposing (Error, Rule)
import Review.Scope as Scope