Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-mocha

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-mocha - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

0.6.2 / 2015-11-21
------------------
- report error if in mocha: See: https://github.com/jprichardson/electron-mocha/pull/25
0.6.1 / 2015-11-05

@@ -2,0 +6,0 @@ ------------------

@@ -10,2 +10,4 @@ var app = require('app')

var mocha = require('./mocha')
var util = require('util')
var path = require('path')

@@ -44,5 +46,16 @@ // these were suppose to do something, but they don't

})
ipc.on('mocha-error', function(event, data) {
writeError(data)
exit(1)
})
}
})
function writeError(data) {
process.stderr.write(util.format('\nError encountered in %s: %s\n%s',
path.relative(process.cwd(), data.filename),
data.message,
data.stack))
}
function exit (code) {

@@ -49,0 +62,0 @@ fs.remove(browserDataPath, function (err) {

2

package.json
{
"name": "electron-mocha",
"version": "0.6.1",
"version": "0.6.2",
"description": "Mocha tests in Electron.",

@@ -5,0 +5,0 @@ "preferGlobal": true,

@@ -8,7 +8,10 @@ require('./console')

// consider hooking up to mocha
/* window.onerror = function (message, filename, lineno, colno, err) {
console.log(err.message)
console.log(err.stack)
}*/
window.onerror = function (message, filename, lineno, colno, err) {
ipc.send('mocha-error', {
message: message,
filename: filename,
err: err,
stack: err.stack
})
}

@@ -15,0 +18,0 @@ // console.log(JSON.stringify(window.__args__, null, 2))

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc