summaryrefslogtreecommitdiffstats
path: root/spec/javascript-compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascript-compiler.js')
-rw-r--r--spec/javascript-compiler.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/javascript-compiler.js b/spec/javascript-compiler.js
index a9ae0f8..1605868 100644
--- a/spec/javascript-compiler.js
+++ b/spec/javascript-compiler.js
@@ -45,10 +45,12 @@ describe('javascript-compiler api', function() {
describe('buffer', function() {
var $superAppend, $superCreate;
beforeEach(function() {
+ handlebarsEnv.JavaScriptCompiler.prototype.forceBuffer = true;
$superAppend = handlebarsEnv.JavaScriptCompiler.prototype.appendToBuffer;
$superCreate = handlebarsEnv.JavaScriptCompiler.prototype.initializeBuffer;
});
afterEach(function() {
+ handlebarsEnv.JavaScriptCompiler.prototype.forceBuffer = false;
handlebarsEnv.JavaScriptCompiler.prototype.appendToBuffer = $superAppend;
handlebarsEnv.JavaScriptCompiler.prototype.initializeBuffer = $superCreate;
});