Socket
Socket
Sign inDemoInstall

mocha-casperjs

Package Overview
Dependencies
72
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.8 to 0.6.0

9

mocha-casperjs.js

@@ -31,3 +31,6 @@ module.exports = function (Mocha, casper, utils) {

}
},
resetSteps = function() {
casper.bypass(casper.steps.length)
}

@@ -52,3 +55,3 @@

casper.on('waitFor.timeout', function(timeout, details) {
casper.step++
resetSteps()
var message = f('waitFor timeout of %dms occured', timeout)

@@ -83,7 +86,7 @@ details = details || {}

casper.on('step.timeout', function(step) {
casper.step++
resetSteps()
failTest(new Error(f('step %d timed out (%dms)', step, casper.options.stepTimeout)))
})
casper.on('timeout', function() {
casper.step++
resetSteps()
failTest(new Error(f('Load timeout of (%dms)', casper.options.timeout)))

@@ -90,0 +93,0 @@ })

@@ -11,3 +11,3 @@ {

],
"version": "0.5.8" ,
"version": "0.6.0" ,
"author": "Nathan Black <nathan@nathanblack.org>",

@@ -14,0 +14,0 @@ "license": "MIT",

@@ -55,2 +55,4 @@ # CasperJS automation via Mocha [![Build Status](https://secure.travis-ci.org/nathanboktae/mocha-casperjs.png?branch=master)](https://travis-ci.org/nathanboktae/mocha-casperjs)

Remember that your tests *do not run in node.js*, but whatever engine you choose from casperjs, so your language and API features will depend on that.
#### Windows users

@@ -57,0 +59,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc