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

mocha-phantomjs

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-phantomjs - npm Package Compare versions

Comparing version 3.5.3 to 3.5.4

14

lib/mocha-phantomjs/core_extensions.js

@@ -28,3 +28,8 @@ (function(){

for (var i = 0; i < arguments.length; i++) {
objects.push(JSON.stringify(arguments[i]));
try {
objects.push(JSON.stringify(arguments[i]));
}
catch (_) {
objects.push('[Circular]');
}
}

@@ -42,3 +47,8 @@ return objects.join(' ');

case '%d': return Number(args[i++]);
case '%j': return JSON.stringify(args[i++]);
case '%j':
try {
return JSON.stringify(args[i++]);
} catch (_) {
return '[Circular]';
}
default:

@@ -45,0 +55,0 @@ return x;

6

package.json

@@ -12,3 +12,3 @@ {

],
"version": "3.5.3",
"version": "3.5.4",
"author": "Ken Collins <ken@metaskills.net> (http://metaskills.net/)",

@@ -40,3 +40,3 @@ "licenses": [

"peerDependencies": {
"phantomjs": "~1.9.1"
"phantomjs": "1.9.1 - 1.9.7-15"
},

@@ -48,3 +48,3 @@ "dependencies": {

"devDependencies": {
"phantomjs": "~1.9.1",
"phantomjs": "1.9.1 - 1.9.7-15",
"chai": "1.8.x",

@@ -51,0 +51,0 @@ "coffee-script": "1.6.x",

# PhantomJS Runners for Mocha
[Mocha](http://visionmedia.github.com/mocha/) is a feature-rich JavaScript test framework running on node and the browser. Along with the [Chai](http://chaijs.com) assertion library they make an impressive combo. [PhantomJS](http://phantomjs.org) is a headless WebKit with a JavaScript/CoffeeScript API. It has fast and native support for various web standards like DOM handling, CSS selectors, JSON, Canvas, and SVG.
[Mocha](http://mochajs.org/) is a feature-rich JavaScript test framework running on node and the browser. Along with the [Chai](http://chaijs.com) assertion library they make an impressive combo. [PhantomJS](http://phantomjs.org) is a headless WebKit with a JavaScript/CoffeeScript API. It has fast and native support for various web standards like DOM handling, CSS selectors, JSON, Canvas, and SVG.

@@ -9,3 +9,3 @@ The mocha-phantomjs project provides a `mocha-phantomjs.coffee` script file and extensions to drive PhantomJS while testing your HTML pages with Mocha from the console. The preferred usage is to install `mocha-phantomjs` via node's packaged modules and use the `mocha-phantomjs` binary wrapper. Tested with Mocha 1.12.x, Chai 1.7.x, and PhantomJS 1.9.1.

[![Build Status](https://secure.travis-ci.org/metaskills/mocha-phantomjs.png)](http://travis-ci.org/metaskills/mocha-phantomjs)
[![Build Status](https://secure.travis-ci.org/nathanboktae/mocha-phantomjs.png)](http://travis-ci.org/nathanboktae/mocha-phantomjs)

@@ -46,2 +46,4 @@

-t, --timeout <timeout> specify the test startup timeout to use
-g, --grep <pattern> only run tests matching <pattern>
-i, --invert inverts --grep matches
-b, --bail exit on the first test failure

@@ -74,2 +76,3 @@ -A, --agent <userAgent> specify the user agent to use

<meta charset="utf-8">
<!-- encoding must be set for mocha's special characters to render properly -->
<link rel="stylesheet" href="mocha.css" />

@@ -125,6 +128,6 @@ </head>

<div style="text-align:center;">
<img src="https://raw.github.com/metaskills/mocha-phantomjs/master/public/images/slow.gif" alt="Slow Tests Example">
<img src="https://raw.github.com/nathanboktae/mocha-phantomjs/master/public/images/slow.gif" alt="Slow Tests Example">
</div>
The following is a list of tested reporters. Since moving PhantomJS 1.9.1, most core Mocha reporters should "just work" since we now support stdout properly. Reporters with node dependencies will not work, like `html-cov`. If you have an issue with a reporter, [open a github issue](https://github.com/metaskills/mocha-phantomjs/issues) and let me know.
The following is a list of tested reporters. Since moving PhantomJS 1.9.1, most core Mocha reporters should "just work" since we now support stdout properly. Reporters with node dependencies will not work, like `html-cov`. If you have an issue with a reporter, [open a github issue](https://github.com/nathanboktae/mocha-phantomjs/issues) and let me know.

@@ -136,3 +139,3 @@ ### Spec Reporter (default)

<div style="text-align:center;">
<img src="https://raw.github.com/metaskills/mocha-phantomjs/master/public/images/reporter_spec.gif" alt="Spec Reporter" width="616">
<img src="https://raw.github.com/nathanboktae/mocha-phantomjs/master/public/images/reporter_spec.gif" alt="Spec Reporter" width="616">
</div>

@@ -145,3 +148,3 @@

<div style="text-align:center;">
<img src="https://raw.github.com/metaskills/mocha-phantomjs/master/public/images/reporter_dot.gif" alt="Dot Matrix Reporter" width="616">
<img src="https://raw.github.com/nathanboktae/mocha-phantomjs/master/public/images/reporter_dot.gif" alt="Dot Matrix Reporter" width="616">
</div>

@@ -155,3 +158,3 @@

[Bundled](http://visionmedia.github.io/mocha/#reporters) and tested reporters include:
[Bundled](http://mochajs.org/#reporters) and tested reporters include:

@@ -174,3 +177,3 @@ ````

Mocha has support for custom [3rd party reporters](https://github.com/visionmedia/mocha/wiki/Third-party-reporters), and mocha-phantomjs does support 3rd party reporters, but keep in mind - *the reporter does not run in Node.js, but in the browser, and node modules can't be required.* You need to only use basic, vanilla JavaScript when using third party reporters. However, some things are available:
Mocha has support for custom [3rd party reporters](https://github.com/mochajs/mocha/wiki/Third-party-reporters), and mocha-phantomjs does support 3rd party reporters, but keep in mind - *the reporter does not run in Node.js, but in the browser, and node modules can't be required.* You need to only use basic, vanilla JavaScript when using third party reporters. However, some things are available:

@@ -189,3 +192,3 @@ - `require`: You can only require other reporters, like `require('./base')` to build off of the BaseReporter

[![Build Status](https://secure.travis-ci.org/metaskills/mocha-phantomjs.png)](http://travis-ci.org/metaskills/mocha-phantomjs)
[![Build Status](https://secure.travis-ci.org/nathanboktae/mocha-phantomjs.png)](http://travis-ci.org/nathanboktae/mocha-phantomjs)

@@ -192,0 +195,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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