From 60652429a1f6ac5117488a406efc1fae28ef8c6f Mon Sep 17 00:00:00 2001 From: Craig Taub Date: Sun, 5 Feb 2017 23:09:01 +0000 Subject: [PATCH] use stubbed symbol --- test/reporters/list.spec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/reporters/list.spec.js b/test/reporters/list.spec.js index f2536e5a28..00fc58edde 100644 --- a/test/reporters/list.spec.js +++ b/test/reporters/list.spec.js @@ -103,6 +103,9 @@ describe('List reporter', function () { Base.cursor = cachedCursor; }); it('should write expected symbol, title and duration to the console', function () { + var cachedSymbols = Base.symbols; + var expectedOkSymbol = 'OK'; + Base.symbols.ok = expectedOkSymbol; var cachedCursor = Base.cursor; Base.cursor.CR = function () {}; var expectedTitle = 'some title'; @@ -123,9 +126,10 @@ describe('List reporter', function () { process.stdout.write = stdoutWrite; - stdout[0].should.equal(' ✓ ' + expectedTitle + ': ' + expectedDuration + 'ms\n'); + stdout[0].should.equal(' ' + expectedOkSymbol + ' ' + expectedTitle + ': ' + expectedDuration + 'ms\n'); Base.cursor = cachedCursor; + Base.symbols = cachedSymbols; }); }); describe('on fail', function () {