summaryrefslogtreecommitdiffstats
path: root/spec/runtime.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-08-22 10:56:10 -0700
committerkpdecker <kpdecker@gmail.com>2015-08-22 11:13:08 -0700
commit6c45f49b24d63acda37072df464bd670af97a072 (patch)
tree32c80cdda56bf81d25bff5fa84375267f25d053d /spec/runtime.js
parent495cd05a7e27bf0485ffc07cb32324402422868b (diff)
downloadhandlebars.js-6c45f49b24d63acda37072df464bd670af97a072.zip
handlebars.js-6c45f49b24d63acda37072df464bd670af97a072.tar.gz
handlebars.js-6c45f49b24d63acda37072df464bd670af97a072.tar.bz2
Implement decorator helper method
Diffstat (limited to 'spec/runtime.js')
-rw-r--r--spec/runtime.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/runtime.js b/spec/runtime.js
index 502a843..a4830ad 100644
--- a/spec/runtime.js
+++ b/spec/runtime.js
@@ -14,19 +14,19 @@ describe('runtime', function() {
it('should throw on version mismatch', function() {
shouldThrow(function() {
Handlebars.template({
- main: true,
+ main: {},
compiler: [Handlebars.COMPILER_REVISION + 1]
});
}, Error, /Template was precompiled with a newer version of Handlebars than the current runtime/);
shouldThrow(function() {
Handlebars.template({
- main: true,
+ main: {},
compiler: [Handlebars.COMPILER_REVISION - 1]
});
}, Error, /Template was precompiled with an older version of Handlebars than the current runtime/);
shouldThrow(function() {
Handlebars.template({
- main: true
+ main: {}
});
}, Error, /Template was precompiled with an older version of Handlebars than the current runtime/);
});