fix istanbul report writting by mock.restore in test/util/error.js

This commit is contained in:
harttle
2016-11-01 23:09:47 +08:00
parent 951225fb75
commit ce99bb56eb
4 changed files with 5 additions and 5 deletions
+3
View File
@@ -36,6 +36,9 @@ describe('engine#express()', function() {
});
});
});
after(function(){
mock.restore();
});
it('should render templates', function(done) {
request(app).get('/name')
.expect('My name is harttle.')
+1
View File
@@ -40,6 +40,7 @@ describe('error', function() {
expect(err.input).to.equal('{% raw %}');
expect(err.line).to.equal(4);
expect(err.file).to.equal('/foo.html');
mock.restore();
});
});