mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 22:10:41 -07:00
unit test: multiple hash
This commit is contained in:
@@ -78,4 +78,12 @@ describe('tags/layout', function() {
|
|||||||
return expect(liquid.renderFile('/main.html')).to.
|
return expect(liquid.renderFile('/main.html')).to.
|
||||||
eventually.equal('blackA');
|
eventually.equal('blackA');
|
||||||
});
|
});
|
||||||
|
it('should support multiple hash', function() {
|
||||||
|
mock({
|
||||||
|
'/parent.html': '{{color}}{{bg}}{%block%}{%endblock%}',
|
||||||
|
'/main.html': '{% layout "parent.html" color:"black", bg:"red"%}{%block%}A{%endblock%}'
|
||||||
|
});
|
||||||
|
return expect(liquid.renderFile('/main.html')).to.
|
||||||
|
eventually.equal('blackredA');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user