Skip to content

Commit

Permalink
test: add test that checks if duration is NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingmar Stein committed Jun 15, 2017
1 parent 6423d41 commit da6e61c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/unit/reporters/base-reporter-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,16 @@ describe 'BaseReporter', () ->

it 'should set the end time', () ->
assert.isOk tests[0].end

describe 'when test start is UTC', () ->

beforeEach () ->
test =
status: 'pass'
title: 'Passing Test'
emitter.emit 'test start', test
test.start = '2017-06-15T09:29:50.588Z'
emitter.emit 'test fail', test

it 'should set the duration', () ->
assert.isNotNaN tests[0].duration

0 comments on commit da6e61c

Please sign in to comment.