Skip to content

Commit

Permalink
test(reporter): update config.formatError test
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Mar 27, 2017
1 parent 562f2bb commit fa50ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/reporter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ describe('reporter', () => {
expect(spy.firstCall.args[0]).to.equal(ERROR)
})

it('should display the error returned by config.formatError', () => {
it('should display the exact error returned by config.formatError', () => {
var formattedError = 'A new error'
formatError = m.createErrorFormatter({ basePath: '', formatError: () => formattedError }, emitter)

expect(formatError('Something', '\t')).to.equal(formattedError + '\n')
expect(formatError('Something', '\t')).to.equal(formattedError)
})

it('should indent', () => {
Expand Down

0 comments on commit fa50ab8

Please sign in to comment.