mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
feature: template file lookup error message
This commit is contained in:
+8
-3
@@ -48,9 +48,14 @@ describe('engine#express()', function() {
|
||||
var file = '/not-exist.html';
|
||||
var ctx = {};
|
||||
engine.express().call(view, file, ctx, function(err) {
|
||||
expect(err.code).to.equal('ENOENT');
|
||||
console.log(err.message);
|
||||
done();
|
||||
try{
|
||||
expect(err.code).to.equal('ENOENT');
|
||||
expect(err.message).to.match(/Failed to lookup/);
|
||||
done();
|
||||
}
|
||||
catch(e){
|
||||
done(e);
|
||||
}
|
||||
});
|
||||
});
|
||||
it('should respect root option when lookup', function(done) {
|
||||
|
||||
Reference in New Issue
Block a user