Skip to content

Commit

Permalink
Fix sinon now considers constructor a special method
Browse files Browse the repository at this point in the history
The `stub()` function will not wrap it automatically anymore.
  • Loading branch information
arximboldi committed Sep 20, 2016
1 parent 26c7467 commit 0ddb52a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"heterarchy": "^1.0.5",
"mocha": "^2.2.5",
"node-promise": "^0.5.12",
"sinon": "^1.14.1",
"sinon-chai": "^2.7.0",
"sinon": "^1.17.6",
"sinon-chai": "^2.8.0",
"string": "^3.1.3",
"through2": "^0.6.5",
"underscore": "^1.8.3",
Expand Down
4 changes: 2 additions & 2 deletions test/mixco/script.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# > - **View me [on GitHub](https://github.com/arximboldi/mixco/blob/master/test/mixco/script.spec.coffee)**

chai = {expect} = require 'chai'
{stub} = require 'sinon'
{stub, spy} = require 'sinon'
chai.use require 'sinon-chai'

describe 'mixco.script', ->
Expand Down Expand Up @@ -50,7 +50,7 @@ describe 'mixco.script', ->

it 'can generate a script type from a definition', ->
spier = stub
constructor: ->
constructor: spy()
preinit: ->
init: ->
shutdown: ->
Expand Down

0 comments on commit 0ddb52a

Please sign in to comment.