[Pkg-javascript-commits] [node-coveralls] 323/332: Do not use sinon-restore but sinon

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:54:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit 5c1bcb89048f6f7465dba47f686cecbb5c969a79
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Thu Sep 7 22:04:18 2017 +0200

    Do not use sinon-restore but sinon
    
    Forwarded: no
---
 test/handleInput.js     | 6 +++---
 test/logger.js          | 2 +-
 test/sendToCoveralls.js | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/handleInput.js b/test/handleInput.js
index dc88902..cc51e7a 100644
--- a/test/handleInput.js
+++ b/test/handleInput.js
@@ -1,13 +1,13 @@
 var should = require('should');
-var sinon = require('sinon-restore');
+var sinon = require('sinon').sandbox.create();
 var index = require('../index');
 var fs = require('fs');
 logger = require('log-driver')({level : false});
 
 describe("handleInput", function(){
    afterEach(function() {
-        sinon.restoreAll();
-      });
+        sinon.restore();
+  });
   it ("returns an error when there's an error getting options", function(done){
     sinon.stub(index, 'getOptions', function(cb){
       return cb("some error", {}); 
diff --git a/test/logger.js b/test/logger.js
index 19767df..5430829 100644
--- a/test/logger.js
+++ b/test/logger.js
@@ -1,5 +1,5 @@
 var should = require('should');
-var sinon = require('sinon-restore');
+var sinon = require('sinon');
 var index = require('../index');
 
 describe("logger", function(){
diff --git a/test/sendToCoveralls.js b/test/sendToCoveralls.js
index 6121bbb..3589bd8 100644
--- a/test/sendToCoveralls.js
+++ b/test/sendToCoveralls.js
@@ -1,6 +1,6 @@
 var should = require('should');
 var request = require('request');
-var sinon = require('sinon-restore');
+var sinon = require('sinon').sandbox.create();
 var index = require('../index');
 logger = require('log-driver')({level : false});
 
@@ -11,7 +11,7 @@ describe("sendToCoveralls", function(){
   });
 
   afterEach(function() {
-    sinon.restoreAll();
+    sinon.restore();
     if (realCoverallsHost !== undefined) {
       process.env.COVERALLS_ENDPOINT = realCoverallsHost;
     } else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list