mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
coverage
This commit is contained in:
+7
-1
@@ -13,7 +13,7 @@ var Template = require('../src/parser.js');
|
||||
describe('template', function() {
|
||||
var scope, template, add = (l, r) => l + r;
|
||||
|
||||
beforeEach(function(){
|
||||
beforeEach(function() {
|
||||
filter.clear();
|
||||
filter.register('add', add);
|
||||
|
||||
@@ -21,6 +21,12 @@ describe('template', function() {
|
||||
template = Template(tag, filter);
|
||||
});
|
||||
|
||||
it('should throw when output string illegal', function() {
|
||||
expect(function() {
|
||||
template.parseOutput('/');
|
||||
}).to.throw(/illegal output string/);
|
||||
});
|
||||
|
||||
it('should parse output string', function() {
|
||||
var tpl = template.parseOutput('foo');
|
||||
expect(tpl.type).to.equal('output');
|
||||
|
||||
Reference in New Issue
Block a user