Coerce noEscape-statements to a string
Also removed `chai-diff`-dependency, since it is unmaintained and not that useful. Fixes #1838
This commit is contained in:
@@ -34,6 +34,7 @@ describe('javascript-compiler api', function() {
|
||||
.toCompileTo('food');
|
||||
});
|
||||
});
|
||||
|
||||
describe('#compilerInfo', function() {
|
||||
var $superCheck, $superInfo;
|
||||
beforeEach(function() {
|
||||
@@ -58,6 +59,7 @@ describe('javascript-compiler api', function() {
|
||||
.toCompileTo('food ');
|
||||
});
|
||||
});
|
||||
|
||||
describe('buffer', function() {
|
||||
var $superAppend, $superCreate;
|
||||
beforeEach(function() {
|
||||
@@ -116,4 +118,13 @@ describe('javascript-compiler api', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('options', function() {
|
||||
it('should append `noEscape` statements as string', function() {
|
||||
expectTemplate('{{a}}{{b}}')
|
||||
.withCompileOptions({ noEscape: true })
|
||||
.withInput({ a: 1, b: 1 })
|
||||
.toCompileTo('11');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user