Skip to content

Commit bdbaad4

Browse files
author
Matt Gaunt
committed
Disable CLI tests on old node
1 parent 3a08c81 commit bdbaad4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test-cli.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
'use strict';
22

3+
const invalidNodeVersions = /0.(10|12).(\d+)/;
4+
if (process.versions.node.match(invalidNodeVersions)) {
5+
console.log('Skipping CLI tests as they can\'t run on node: ' + process.versions.node);
6+
return;
7+
}
8+
39
const assert = require('assert');
410
const urlBase64 = require('urlsafe-base64');
511
const spawn = require('child_process').spawn;

0 commit comments

Comments
 (0)