Skip to content

Commit fd45f1b

Browse files
Added Testling hooks
1 parent fcd67a3 commit fd45f1b

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@
3131
"bump": "bump --prompt --tag --push --all",
3232
"release": "npm run upgrade && npm run build && npm test && npm run bump && npm publish"
3333
},
34+
"testling": {
35+
"harness": "mocha",
36+
"files": "tests/**/*.js",
37+
"browsers": [
38+
"ie/6..latest",
39+
"chrome/22..latest",
40+
"firefox/16..latest",
41+
"safari/5.0..latest",
42+
"opera/11.0..latest",
43+
"iphone/6..latest",
44+
"ipad/6..latest",
45+
"android-browser/4.2..latest"
46+
]
47+
},
3448
"repository": {
3549
"type": "git",
3650
"url": "https://github.com/bigstickcarpet/ono.git"
@@ -61,4 +75,4 @@
6175
"version-bump-prompt": "^1.4.2"
6276
},
6377
"dependencies": {}
64-
}
78+
}

tests/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var isBrowser = typeof(window) === 'object';
3+
var isBrowser = typeof(window) === 'object' && typeof(process) === 'undefined';
44

55
var helper = {
66
isNode: !isBrowser,

0 commit comments

Comments
 (0)