@es-shims/api
Advanced tools
Comparing version 2.1.1 to 2.1.2
11
api.js
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
var existsSync = path.existsSync || fs.existsSync; | ||
var spawnSync = require('child_process').spawnSync; | ||
var spawn = require('child_process').spawn; | ||
@@ -116,9 +116,12 @@ var args = process.argv.slice(2); // remove node, and script name | ||
st.comment('# SKIP ' + msg); | ||
st.end(); | ||
} else { | ||
require(path.join(packageDir, '/auto')); | ||
st.comment(msg + ' (pass `--skip-auto-shim` to skip this test)'); | ||
var result = spawnSync(path.join(__dirname, './autoTest.js'), [], { stdio: 'inherit' }); | ||
st.equal(result.status, 0, 'auto invokes shim'); | ||
var proc = spawn(path.join(__dirname, './autoTest.js'), [], { stdio: 'inherit' }); | ||
st.plan(1); | ||
proc.on('close', function (code) { | ||
st.equal(code, 0, 'auto invokes shim'); | ||
}); | ||
} | ||
st.end(); | ||
}); | ||
@@ -125,0 +128,0 @@ |
@@ -0,1 +1,5 @@ | ||
2.1.2 / 2017-12-30 | ||
================== | ||
* [Fix] ensure the "auto" test works prior to node 0.12 | ||
2.1.1 / 2017-12-21 | ||
@@ -2,0 +6,0 @@ ================== |
{ | ||
"name": "@es-shims/api", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"author": "Jordan Harband", | ||
@@ -5,0 +5,0 @@ "description": "Loosely test a package's compliance with the es-shim API", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26738
262