Add assertion and config for new test
This commit is contained in:
parent
3802fa500e
commit
3dcfe1348f
@ -118,6 +118,11 @@ module.exports = function(grunt) {
|
||||
files: {
|
||||
"tmp/process_content.js": ["test/fixtures/indent_template.html"]
|
||||
}
|
||||
},
|
||||
local_scope: {
|
||||
files: {
|
||||
"tmp/local_scope.js": ["test/fixtures/template_local_scope.html"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -6,7 +6,7 @@ exports['jst'] = {
|
||||
|
||||
var expect, result;
|
||||
|
||||
test.expect(8);
|
||||
test.expect(9);
|
||||
|
||||
expect = grunt.file.read("test/expected/jst.js");
|
||||
result = grunt.file.read("tmp/jst.js");
|
||||
@ -40,6 +40,10 @@ exports['jst'] = {
|
||||
result = grunt.file.read("tmp/process_content.js");
|
||||
test.equal(expect, result, "should convert file content");
|
||||
|
||||
expect = grunt.file.read("test/expected/local_scope.js");
|
||||
result = grunt.file.read("tmp/local_scope.js");
|
||||
test.equal(expect, result, "should add `with` block when templateSettings.variable is undefined");
|
||||
|
||||
test.done();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user