Skip to content

Commit ce3321e

Browse files
committed
Drop support for node v6, it was EOL April 30th, 2019
1 parent 62f6689 commit ce3321e

4 files changed

Lines changed: 26 additions & 28 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ node_js:
77
- 12
88
- 10
99
- 8
10-
- 6
1110
sudo: false

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"main": "./lib",
2525
"preferGlobal": true,
2626
"engines": {
27-
"node": ">=6"
27+
"node": ">=8"
2828
},
2929
"scripts": {
3030
"lint": "eslint lib test",

test/index.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var tap = require('tap');
2+
var run = require('./utils/run');
23
var spawn = require('./utils/spawn');
34
var touchFile = require('./utils/touch-file');
45

@@ -179,3 +180,27 @@ tap.test('node-dev using spawn', function (t1) {
179180

180181
t1.end();
181182
});
183+
184+
tap.test('node-dev using run', function (t1) {
185+
t1.test('should restart the server', function (t) {
186+
run('server.js', t.end.bind(t));
187+
});
188+
189+
t1.test('should restart the cluster', function (t) {
190+
run('cluster.js', t.end.bind(t));
191+
});
192+
193+
t1.test('should support vm functions', function (t) {
194+
run('vmtest.js', t.end.bind(t));
195+
});
196+
197+
t1.test('should support vm functions with missing file argument', function (t) {
198+
run('vmtest.js nofile', t.end.bind(t));
199+
});
200+
201+
t1.test('should support coffeescript', function (t) {
202+
run('server.coffee', t.end.bind(t));
203+
});
204+
205+
t1.end();
206+
});

test/run.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)