Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit 189bbce

Browse files
authored
Merge pull request #105 from sectore/add-test-deps
Add test dependencies
2 parents 32a8e55 + b9fb51c commit 189bbce

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

bower.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@
3131
"purescript-nullable": "^3.0.0",
3232
"purescript-prelude": "^3.0.0",
3333
"purescript-unsafe-coerce": "^3.0.0"
34+
},
35+
"devDependencies": {
36+
"purescript-test-unit": "^11.0.0",
37+
"purescript-phantom": "^2.0.0",
38+
"purescript-exitcodes": "^3.0.0"
3439
}
3540
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "eslint src && pulp build -- --censor-lib --strict"
5+
"build": "eslint src && pulp build -- --censor-lib --strict",
6+
"test": "PHANTOM_TEST_PATH=$(pwd) pulp test --runtime phantomjs"
67
},
78
"devDependencies": {
89
"eslint": "^3.19.0",

test/DOM/HTML/Window.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Test.DOM.HTML.Window where
22

3-
import Prelude (Unit, bind, (<<<))
3+
import Prelude (Unit, bind, (<<<), discard)
44
import DOM (DOM)
55
import DOM.HTML (window)
66
import DOM.HTML.Types (WINDOW)

test/Main.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Test.Main where
22

3-
import Prelude (($), bind)
3+
import Prelude (($), discard)
44
import DOM (DOM)
55
import DOM.HTML.Types (WINDOW)
66
import Data.Enum (fromEnum)
@@ -24,7 +24,7 @@ liftEff = EffClass.liftEff
2424

2525
main
2626
:: forall eff
27-
. Eff (err :: EXCEPTION, console :: CONSOLE, avar :: AVAR, dom :: DOM, window :: WINDOW, phantomjs :: PHANTOMJS | eff)
27+
. Eff (exception :: EXCEPTION, console :: CONSOLE, avar :: AVAR, dom :: DOM, window :: WINDOW, phantomjs :: PHANTOMJS | eff)
2828
(Canceler (console :: CONSOLE, avar :: AVAR, dom :: DOM, window :: WINDOW, phantomjs :: PHANTOMJS | eff))
2929
main = launchAff $ runTest do
3030
domHtmlWindowTests

0 commit comments

Comments
 (0)