Skip to content

Commit

Permalink
convert test/node-unit/color.spec.js to unexpected
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed Apr 21, 2018
1 parent 92f50de commit a8378f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/node-unit/color.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

var assert = require('assert');
var childProcess = require('child_process');
var path = require('path');

Expand All @@ -12,7 +11,7 @@ describe('Mocha', function () {
childProcess.execFile(process.execPath, command, function (err, stdout, stderr) {
if (err) return cb(err);

assert(stdout.indexOf('[90m') === -1);
expect(stdout, 'not to contain', '[90m');

cb(null);
});
Expand Down

0 comments on commit a8378f9

Please sign in to comment.