Skip to content

Commit

Permalink
fix the colors test (Fixes #244). Emphasize PhantomJS 2 usage with mo…
Browse files Browse the repository at this point in the history
…cha-phantomjs-core
  • Loading branch information
nathanboktae committed Nov 21, 2016
1 parent 88ba186 commit 3bf84d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[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 API.

Since 4.0, the phantomjs code now is in [mocha-phantomjs-core](https://github.com/nathanboktae/mocha-phantomjs-core). If you need full control over which phantomjs version to use and where to get it, or want to use it more programatically like a build system plugin, please use that package directly. This project is a node.js CLI around it.
Since 4.0, the phantomjs code now is in [mocha-phantomjs-core](https://github.com/nathanboktae/mocha-phantomjs-core). If you need full control over which phantomjs version to use and where to get it, including *PhantomJS 2.0* and SlimerJS, or want to use it more programatically like a build system plugin, please use that package directly. This project is a node.js CLI around it.

[![Build Status](https://travis-ci.org/nathanboktae/mocha-phantomjs.svg?branch=master)](https://travis-ci.org/nathanboktae/mocha-phantomjs)

Expand Down
6 changes: 3 additions & 3 deletions test/mocha-phantomjs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ describe 'mocha-phantomjs', ->
it 'by default will output in color', ->
{ stdout } = yield run ['-R', 'dot', fileURL('mixed')]

stdout.should.match /\u001b\[90m\․\u001b\[0m/ # grey
stdout.should.match /\u001b\[36m\․\u001b\[0m/ # cyan
stdout.should.match /\u001b\[31m\․\u001b\[0m/ # red
stdout.should.match /\u001b\[90m.\u001b\[0m/ # grey
stdout.should.match /\u001b\[36m.\u001b\[0m/ # cyan
stdout.should.match /\u001b\[31m.\u001b\[0m/ # red

it 'suppresses color output', ->
{ stdout } = yield run ['-C', fileURL('mixed')]
Expand Down

0 comments on commit 3bf84d2

Please sign in to comment.