Skip to content

Commit

Permalink
fixed tests for node 0.12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
erdii committed Sep 20, 2016
1 parent 11be7d9 commit ab14c47
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions _src/test/mocha_test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,8 @@ describe "`#{pkg.name}@#{pkg.version}` on `node@#{process.version}`", () ->

before () ->
# don't override state because we still need `state.keys`
Object.assign state,
n: 0
startKeys: localCache.getStats().keys
state.n = 0
state.startKeys = localCache.getStats().keys
return

it "delete all previously set keys", () ->
Expand Down Expand Up @@ -742,7 +741,7 @@ describe "`#{pkg.name}@#{pkg.version}` on `node@#{process.version}`", () ->
true.should.eql res
(innerState.startKeys + 1).should.eql localCache.getStats().keys
# event handler should have been fired
0.should.eql localCache.listenerCount "set"
0.should.eql localCache.listeners("set").length
done()
return
return
Expand Down

0 comments on commit ab14c47

Please sign in to comment.