From a8378f90881a37344c15f3b67f16ebb44ba01d07 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Thu, 19 Apr 2018 10:24:47 -0700 Subject: [PATCH] convert test/node-unit/color.spec.js to unexpected Signed-off-by: Christopher Hiller --- test/node-unit/color.spec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/node-unit/color.spec.js b/test/node-unit/color.spec.js index ab27d2019e..95244fedde 100644 --- a/test/node-unit/color.spec.js +++ b/test/node-unit/color.spec.js @@ -1,6 +1,5 @@ 'use strict'; -var assert = require('assert'); var childProcess = require('child_process'); var path = require('path'); @@ -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); });