Simple spec for isolation analysis

This commit is contained in:
Yehuda Katz
2012-05-26 22:17:31 -07:00
parent 68c76c9b2e
commit 246325085f
+3
View File
@@ -45,6 +45,9 @@ var shouldThrow = function(fn, exception, message) {
ok(caught, message || null);
}
test("most basic", function() {
shouldCompileTo("{{foo}}", { foo: "foo" }, "foo");
});
test("compiling with a basic context", function() {
shouldCompileTo("Goodbye\n{{cruel}}\n{{world}}!", {cruel: "cruel", world: "world"}, "Goodbye\ncruel\nworld!",