summaryrefslogtreecommitdiffstats
path: root/spec/qunit_spec.js
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2012-05-26 22:17:31 -0700
committerYehuda Katz <wycats@gmail.com>2012-05-26 22:17:31 -0700
commit246325085faec21087ac177acfd9ce1492c88030 (patch)
treee88cb039365fcefb845c7e4457139de5d0af0797 /spec/qunit_spec.js
parent68c76c9b2eb2fd1cebf5d9fea87f5dfb85b8529d (diff)
downloadhandlebars.js-246325085faec21087ac177acfd9ce1492c88030.zip
handlebars.js-246325085faec21087ac177acfd9ce1492c88030.tar.gz
handlebars.js-246325085faec21087ac177acfd9ce1492c88030.tar.bz2
Simple spec for isolation analysis
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r--spec/qunit_spec.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js
index 2c181ea..7ede9b8 100644
--- a/spec/qunit_spec.js
+++ b/spec/qunit_spec.js
@@ -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!",