unit test: multiple hash

This commit is contained in:
harttle
2017-02-01 13:49:01 +08:00
parent 4018ffe68b
commit 492f56cbfb
+8
View File
@@ -78,4 +78,12 @@ describe('tags/layout', function() {
return expect(liquid.renderFile('/main.html')).to.
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');
});
});