Преглед изворни кода

Restore console.log correctly

Gaël Métais пре 10 година
родитељ
комит
612627d66f
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      test/core/indexTest.js

+ 2 - 0
test/core/indexTest.js

@@ -101,8 +101,10 @@ describe('index.js', function() {
                 /*jshint expr: true*/
                 console.log.should.not.have.been.called;
 
+                console.log.restore();
                 done();
             }).fail(function(err) {
+                console.log.restore();
                 done(err);
             });
     });