Add assertion and config for new test

This commit is contained in:
Colin Hicks 2013-02-15 13:45:54 -05:00
parent 3802fa500e
commit 3dcfe1348f
2 changed files with 10 additions and 1 deletions

View File

@ -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"]
}
}
},

View File

@ -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();
}
};