Comparing version 1.7.8 to 1.7.9
@@ -29,3 +29,3 @@ #!/usr/bin/env node | ||
hookRequire: true, | ||
reporter: ['text', 'lcov', 'text-summary'], | ||
reporter: ['text', 'lcov', 'text-summary', 'json'], | ||
reportDir: COV_REPORT_PATH, | ||
@@ -32,0 +32,0 @@ tempDirectory: COV_REPORT_PATH |
@@ -29,3 +29,3 @@ #!/usr/bin/env node | ||
hookRequire: true, | ||
reporter: ['text', 'lcov', 'text-summary'], | ||
reporter: ['text', 'lcov', 'text-summary', 'json'], | ||
reportDir: COV_REPORT_PATH, | ||
@@ -61,3 +61,10 @@ tempDirectory: COV_REPORT_PATH | ||
nyc.report(); | ||
exit(runError ? 1 : 0); | ||
nyc.checkCoverage({ | ||
statements: 75, | ||
branches: 50, | ||
functions: 60, | ||
lines: 80 | ||
}); | ||
exit(process.exitCode || runError ? 1 : 0); | ||
}); | ||
@@ -64,0 +71,0 @@ // cleanup |
{ | ||
"name": "uvm", | ||
"version": "1.7.8", | ||
"version": "1.7.9", | ||
"description": "Universal Virtual Machine for Node and Browser", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
"test-unit": "node npm/test-unit.js", | ||
"test": "node npm/test.js" | ||
"test": "npm run test-lint && npm run test-system && npm run test-unit && npm run test-integration && npm run test-browser" | ||
}, | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"inherits": "2.0.4", | ||
"lodash": "4.17.15", | ||
"lodash": "4.17.19", | ||
"uuid": "3.3.2" | ||
@@ -38,3 +38,3 @@ }, | ||
"benchmark": "2.1.4", | ||
"browserify": "16.5.0", | ||
"browserify": "16.5.1", | ||
"chai": "4.2.0", | ||
@@ -48,5 +48,5 @@ "chalk": "2.4.2", | ||
"eslint-plugin-security": "1.4.0", | ||
"js-yaml": "3.13.1", | ||
"jsdoc": "3.6.3", | ||
"jsdoc-to-markdown": "5.0.1", | ||
"js-yaml": "3.14.0", | ||
"jsdoc": "3.6.4", | ||
"jsdoc-to-markdown": "5.0.3", | ||
"karma": "3.1.4", | ||
@@ -63,3 +63,3 @@ "karma-browserify": "6.1.0", | ||
"recursive-readdir": "2.2.2", | ||
"shelljs": "0.8.3", | ||
"shelljs": "0.8.4", | ||
"watchify": "3.11.1", | ||
@@ -66,0 +66,0 @@ "yankee": "1.0.8" |
@@ -1,2 +0,2 @@ | ||
# uvm | ||
# uvm [![Build Status](https://travis-ci.org/postmanlabs/uvm.svg?branch=develop)](https://travis-ci.org/postmanlabs/uvm) [![codecov](https://codecov.io/gh/postmanlabs/uvm/branch/develop/graph/badge.svg)](https://codecov.io/gh/postmanlabs/uvm) | ||
@@ -3,0 +3,0 @@ Module that exposes an event emitter to send data across contexts (vm in node and iframe in browser) |
@@ -45,21 +45,2 @@ /** | ||
describe('script definitions', function () { | ||
it('should have valid, existing files', function () { | ||
var scriptRegex = /^node\snpm\/.+\.js$/; | ||
expect(json.scripts).to.be.ok; | ||
json.scripts && Object.keys(json.scripts).forEach(function (scriptName) { | ||
expect(json.scripts[scriptName]).to.match(scriptRegex); | ||
expect(fs.statSync('npm/' + scriptName + '.js')).to.be.ok; | ||
}); | ||
}); | ||
it('should have the hashbang defined', function () { | ||
json.scripts && Object.keys(json.scripts).forEach(function (scriptName) { | ||
var fileContent = fs.readFileSync('npm/' + scriptName + '.js').toString(); | ||
expect(fileContent).to.match(/^#!\/(bin\/bash|usr\/bin\/env\snode)[\r\n][\W\w]*$/g); | ||
}); | ||
}); | ||
}); | ||
describe('devDependencies', function () { | ||
@@ -66,0 +47,0 @@ it('should exist', function () { |
@@ -11,3 +11,9 @@ ((typeof window === 'undefined') ? describe : describe.skip)('uvm timeout option', function () { | ||
}, function (err, context) { | ||
expect(err).to.be.an('error').that.has.property('message', 'Script execution timed out.'); | ||
expect(err).to.be.an('error').that.has.property('message'); | ||
// @note nodeVersionDiscrepancy: node version 12 onwards sends a different message | ||
expect(err.message).to.be.oneOf([ | ||
'Script execution timed out.', | ||
'Script execution timed out after 100ms' | ||
]); | ||
context && context.on('error', done); | ||
@@ -33,3 +39,9 @@ done(); | ||
context.on('error', function (err) { | ||
expect(err).to.be.an('error').that.has.property('message', 'Script execution timed out.'); | ||
expect(err).to.be.an('error').that.has.property('message'); | ||
// @note nodeVersionDiscrepancy: node version 12 onwards sends a different message | ||
expect(err.message).to.be.oneOf([ | ||
'Script execution timed out.', | ||
'Script execution timed out after 100ms' | ||
]); | ||
done(); | ||
@@ -36,0 +48,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
125100
2042
+ Addedlodash@4.17.19(transitive)
- Removedlodash@4.17.15(transitive)
Updatedlodash@4.17.19