[Pkg-javascript-commits] [node-log-driver] 46/49: Use sinon instead of sinon-restore

Bastien Roucariès rouca at moszumanska.debian.org
Thu Feb 22 12:57:10 UTC 2018


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

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

commit 4524abc314b228a1353fc51cc44f21fb893b1c86
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Thu Aug 24 22:27:30 2017 +0200

    Use sinon instead of sinon-restore
    
    Forwarded: no
---
 test/index.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/index.js b/test/index.js
index edc9825..456d371 100644
--- a/test/index.js
+++ b/test/index.js
@@ -1,10 +1,12 @@
 var should = require('should');
 var logger = require('../index');
 var defaultLogger = require('../index').logger;
-var sinon = require('sinon-restore');
+var sinonbase = require('sinon');
 var logged = "";
 var oldConsoleLog = console.log;
 
+var sinon = sinonbase.sandbox.create();
+
 /* NOTE: console.log is mocked in these tests, so any uses of it will be
  * appended to the variabled "logged".  This will include any calls you
  * make to console.log() for the purpose of debugging in these tests.
@@ -22,7 +24,7 @@ describe("logdriver", function(){
     });
   });
   afterEach(function(){
-    sinon.restoreAll();
+    sinon.reset();
     console.log = oldConsoleLog;
     logged = "";
   });

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



More information about the Pkg-javascript-commits mailing list