Skip to content

Commit

Permalink
use stubbed symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
craigtaub committed Feb 5, 2017
1 parent 614190d commit 6065242
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/reporters/list.spec.js
Expand Up @@ -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';
Expand All @@ -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 () {
Expand Down

0 comments on commit 6065242

Please sign in to comment.