mirror of
https://github.com/correl/elm.git
synced 2025-04-11 01:01:02 -09:00
Update grains for elm-test 0.18.3 compatibility
This commit is contained in:
parent
b98c4dbacb
commit
e3ef09ce99
4 changed files with 23 additions and 18 deletions
exercises/grains
|
@ -8,9 +8,7 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"elm-lang/core": "5.0.0 <= v < 6.0.0",
|
||||
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
|
||||
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
|
||||
"elm-lang/core": "5.0.0 <= v < 6.0.0"
|
||||
},
|
||||
"elm-version": "0.18.0 <= v < 0.19.0"
|
||||
}
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
"license": "MIT",
|
||||
"scripts": {
|
||||
"postinstall": "elm-package install -y",
|
||||
"test": "elm-test Tests.elm"
|
||||
"test": "elm-test"
|
||||
},
|
||||
"dependencies": {
|
||||
"elm": "^0.18.0",
|
||||
"elm-test": "^0.18.0"
|
||||
"elm": "0.18.0",
|
||||
"elm-test": "0.18.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
port module Main exposing (..)
|
||||
module Tests exposing (..)
|
||||
|
||||
import Test.Runner.Node exposing (run, TestProgram)
|
||||
import Json.Encode exposing (Value)
|
||||
import Test exposing (..)
|
||||
import Expect
|
||||
import Grains exposing (square)
|
||||
import Json.Encode exposing (Value)
|
||||
import Test exposing (..)
|
||||
|
||||
|
||||
tests : Test
|
||||
|
@ -29,11 +28,3 @@ tests =
|
|||
\() -> Expect.equal Nothing (square -1)
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
main : TestProgram
|
||||
main =
|
||||
run emit tests
|
||||
|
||||
|
||||
port emit : ( String, Value ) -> Cmd msg
|
16
exercises/grains/tests/elm-package.json
Normal file
16
exercises/grains/tests/elm-package.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"version": "3.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
"source-directories": [
|
||||
".",
|
||||
".."
|
||||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"elm-lang/core": "5.0.0 <= v < 6.0.0",
|
||||
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.18.0 <= v < 0.19.0"
|
||||
}
|
Loading…
Add table
Reference in a new issue