summaryrefslogtreecommitdiffstats
path: root/spec/runtime.js
diff options
context:
space:
mode:
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/);
});