Skip to content

Commit 68f0182

Browse files
committed
Skip spread rest on node 0.12
1 parent 6cbd6a7 commit 68f0182

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/rest-spread.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ var fs = require('fs');
44
var src = fs.readFileSync(__dirname + '/files/rest-spread.js');
55

66
test('rest-spread', function (t) {
7-
t.doesNotThrow(detective.bind(detective, src), 'Files with rest or spread do not throw')
7+
try {
8+
require('acorn5-object-spread/inject')
9+
t.doesNotThrow(detective.bind(detective, src), 'Files with rest or spread do not throw')
10+
} catch (_) {
11+
// node 0.12
12+
t.pass('SKIPPED rest spread')
13+
}
814
t.end();
915
});

0 commit comments

Comments
 (0)