Browse Source

Restore console.log correctly

Gaël Métais 10 năm trước cách đây
mục cha
commit
612627d66f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);
             });
     });