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

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:49:10 UTC 2017


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 52b582eadcab70f2b8e6d7578317f256cfb45321
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 776b426..7b5f3de 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