2017-01-16 02:07:04 +03:00
|
|
|
port module Tests exposing (..)
|
|
|
|
|
|
|
|
import Test exposing (describe, Test)
|
|
|
|
import Test.Runner.Node exposing (run)
|
|
|
|
import Json.Encode exposing (Value)
|
2017-01-23 01:50:00 +03:00
|
|
|
import DefaultPatternPositionTest
|
2017-01-21 17:38:56 +03:00
|
|
|
import NoConstantConditionTest
|
2017-01-16 02:51:31 +03:00
|
|
|
import NoDebugTest
|
2017-01-20 00:27:11 +03:00
|
|
|
import NoDuplicateImportsTest
|
|
|
|
import NoImportingEverythingTest
|
2017-01-25 01:33:16 +03:00
|
|
|
import NoNestedLetTest
|
2017-01-17 01:32:06 +03:00
|
|
|
import NoUnannotatedFunctionTest
|
|
|
|
import NoUnusedVariablesTest
|
2017-01-23 22:09:37 +03:00
|
|
|
import NoUselessIfTest
|
2017-01-21 21:36:12 +03:00
|
|
|
import NoUselessPatternMatchingTest
|
2017-01-22 20:48:22 +03:00
|
|
|
import NoWarningCommentsTest
|
2017-01-21 02:39:12 +03:00
|
|
|
import SimplifyPipingTest
|
2017-06-11 20:43:02 +03:00
|
|
|
import SimplifyPropertyAccessTest
|
2017-01-16 02:07:04 +03:00
|
|
|
|
|
|
|
|
|
|
|
main : Test.Runner.Node.TestProgram
|
|
|
|
main =
|
|
|
|
run emit all
|
|
|
|
|
|
|
|
|
|
|
|
port emit : ( String, Value ) -> Cmd msg
|
|
|
|
|
|
|
|
|
|
|
|
all : Test
|
|
|
|
all =
|
2017-06-11 20:43:02 +03:00
|
|
|
describe "Rules"
|
2017-01-23 01:50:00 +03:00
|
|
|
[ DefaultPatternPositionTest.all
|
|
|
|
, NoConstantConditionTest.all
|
2017-01-21 17:38:56 +03:00
|
|
|
, NoDebugTest.all
|
2017-01-20 00:27:11 +03:00
|
|
|
, NoDuplicateImportsTest.all
|
|
|
|
, NoImportingEverythingTest.all
|
2017-01-25 01:33:16 +03:00
|
|
|
, NoNestedLetTest.all
|
2017-01-16 02:51:31 +03:00
|
|
|
, NoUnannotatedFunctionTest.all
|
2017-01-17 01:32:06 +03:00
|
|
|
, NoUnusedVariablesTest.all
|
2017-01-23 22:09:37 +03:00
|
|
|
, NoUselessIfTest.all
|
2017-01-21 21:36:12 +03:00
|
|
|
, NoUselessPatternMatchingTest.all
|
2017-01-22 20:48:22 +03:00
|
|
|
, NoWarningCommentsTest.all
|
2017-01-21 02:39:12 +03:00
|
|
|
, SimplifyPipingTest.all
|
2017-06-11 20:43:02 +03:00
|
|
|
, SimplifyPropertyAccessTest.all
|
2017-01-16 02:07:04 +03:00
|
|
|
]
|