Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Commit

Permalink
Fix tests under handlebars+zepto environment
Browse files Browse the repository at this point in the history
This failure occurs due to the new behavior of the handlebars full library that does not overwrite the global if already defined, causing the compiler to be undefined in the test environment.
  • Loading branch information
kpdecker committed Sep 3, 2014
1 parent cbdcbd3 commit 4fea24b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{"name": "thorax-dep-zepto", "ignoreWarnings": true}
],
"scripts": [
{"src": "test/lib/handlebars-reset.js", "global": true},
{"src": "components/handlebars/handlebars.js", "ignoreWarnings": true, "global": true}
]
},
Expand All @@ -31,6 +32,7 @@
{"name": "thorax-dep-zepto", "ignoreWarnings": true, "overrides": {"backbone.js": "test/lib/backbone-1-0.js"}}
],
"scripts": [
{"src": "test/lib/handlebars-reset.js", "global": true},
{"src": "components/handlebars/handlebars.js", "ignoreWarnings": true, "global": true}
]
},
Expand Down
1 change: 1 addition & 0 deletions test/lib/handlebars-reset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this.Handlebars = undefined;

0 comments on commit 4fea24b

Please sign in to comment.