From 0ddb52a997a9b9b0352cd7acf823683b39dfa63e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pedro=20Bol=C3=ADvar=20Puente?= Date: Wed, 21 Sep 2016 00:52:01 +0200 Subject: [PATCH] Fix sinon now considers `constructor` a special method The `stub()` function will not wrap it automatically anymore. --- package.json | 4 ++-- test/mixco/script.spec.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 2acd12b..ab540ca 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/mixco/script.spec.coffee b/test/mixco/script.spec.coffee index 153e84c..2159316 100644 --- a/test/mixco/script.spec.coffee +++ b/test/mixco/script.spec.coffee @@ -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', -> @@ -50,7 +50,7 @@ describe 'mixco.script', -> it 'can generate a script type from a definition', -> spier = stub - constructor: -> + constructor: spy() preinit: -> init: -> shutdown: ->