Skip to content

Commit

Permalink
fixed the failing test, seems it was a test error rather than a joe e…
Browse files Browse the repository at this point in the history
…rror perhaps, or perhaps both originally
  • Loading branch information
balupton committed Jun 8, 2014
1 parent 6a8e882 commit fd13352
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/example/example1.coffee
Expand Up @@ -61,13 +61,14 @@ joe.suite 'example1', (suite,test) ->
checks = []
wait 1*1000, -> test '1/2', ->
checks.push(1)
expect(checks).to.deep.equal([1])
wait 2*1000, -> test '2/2', ->
checks.push(2)
expect(checks).to.deep.equal([1, 2])
wait 3*1000, ->
expect(checks).to.deep.equal([1, 2])
checks.push(3)
done()
wait 4*1000, ->
checks.push(4)
expect(checks).to.deep.equal([3, 1, 2, 4])

suite 'before and after', (suite,test) ->
checks = []
Expand Down
2 changes: 1 addition & 1 deletion src/test/joe-test.coffee
Expand Up @@ -3,7 +3,7 @@

# Prepare
everythingTestPath = __dirname+'/../example/example1.js'
expected = "13/14 tests ran successfully"
expected = "11/12 tests ran successfully"

# Test Default Reporter
stdout = ''
Expand Down

0 comments on commit fd13352

Please sign in to comment.