mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
refactor: use assert, fix: respect to express settings.views, close #16
This commit is contained in:
@@ -66,4 +66,9 @@ describe('engine#express()', function() {
|
||||
.expect('foo')
|
||||
.expect(200, done);
|
||||
});
|
||||
it('should respect express settings.views when lookup', function(done) {
|
||||
request(app).get('/include/bar')
|
||||
.expect('bar')
|
||||
.expect(200, done);
|
||||
});
|
||||
});
|
||||
|
||||
+1
-1
@@ -37,10 +37,10 @@ describe('error', function() {
|
||||
"/foo.html": '<html>\n<head>\n\n{% raw %}\n\n'
|
||||
});
|
||||
return test(engine.renderFile('/foo.html', {}), function(err){
|
||||
mock.restore();
|
||||
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