Skip to content

Commit

Permalink
ANSI I will watch you bleed out!
Browse files Browse the repository at this point in the history
  • Loading branch information
GantMan committed Nov 24, 2017
1 parent 58edcb8 commit 30f7699
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils/print.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const test = require('ava')
const sinon = require('sinon')
const stripAnsi = require('strip-ansi')

// couldn't figure out a way to reset the spy on console.log
// for each run... switched to .serial and incrementing. sorry. :(
Expand Down Expand Up @@ -82,9 +83,7 @@ test.serial('table', t => {
['matthew', '2']
]
print.table(data)
// WTF?
t.is(spyLog.args[i++][0], ' liam 5 \n matthew 2 ')
// t.is(spyLog.args[i++][0], ' liam 5 \n matthew 2 ')
t.is(stripAnsi(spyLog.args[i++][0]), ' liam 5 \n matthew 2 ')
})

test.serial('spin', t => {
Expand Down

0 comments on commit 30f7699

Please sign in to comment.