Skip to content

Commit 5afd4e0

Browse files
committed
Update to node 4+
1 parent 1a7f331 commit 5afd4e0

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: node_js
22
node_js:
3-
- "0.10"
4-
- "0.12"
3+
- "stable"
54
sudo: false
65
script: "gulp coverage"
76
after_success:

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ the process of getting the changes merged in and released.
1111
git clone git@github.com:RoundingWellOS/backbone.eventrouter.git && cd backbone.eventrouter
1212
```
1313

14-
Make sure [Node.js](http://nodejs.org/) and [npm](https://www.npmjs.org/) are
14+
Make sure [Node.js](http://nodejs.org/) v4+ and [npm](https://www.npmjs.org/) are
1515
[installed](http://nodejs.org/download/).
16+
If you need multiple node version installs try [nvm](https://www.npmjs.com/package/nvm).
1617

1718
```
1819
$ npm install

package.json

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"gulp-uglify": "^1.2.0",
5656
"isparta": "^2.2.0",
5757
"jquery": "~2.1.1",
58-
"jsdom": "^2.0.0",
58+
"jsdom": "^7.2.0",
5959
"mkdirp": "^0.5.0",
6060
"mocha": "^2.1.0",
6161
"run-sequence": "^1.0.2",

test/setup/node.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ if (!global.document || !global.window) {
22

33
var jsdom = require('jsdom').jsdom;
44

5-
global.document = jsdom('<html><head><script></script></head><body><div id="testDiv"></div></body></html>', null, {
5+
global.document = jsdom('<html><head><script></script></head><body><div id="testDiv"></div></body></html>', {
66
FetchExternalResources: ['script'],
7-
ProcessExternalResources: ['script'],
8-
MutationEvents: '2.0',
9-
QuerySelector: false
7+
ProcessExternalResources: ['script']
108
});
119

12-
global.window = document.parentWindow;
10+
global.window = document.defaultView;
1311
global.navigator = global.window.navigator;
1412
global.location = global.window.location;
1513
}

0 commit comments

Comments
 (0)