mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
fix istanbul report writting by mock.restore in test/util/error.js
This commit is contained in:
@@ -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.')
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user