summaryrefslogtreecommitdiffstats
path: root/spec/parser.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-06-01 23:45:43 -0500
committerkpdecker <kpdecker@gmail.com>2013-06-01 23:45:43 -0500
commitadda0569e0ec3fc363af9efbb23f5304c6d80fe2 (patch)
tree9952d7aed77f8710a53731bb98340d5468c9e931 /spec/parser.js
parentd13ae310d36a27fcbc333570f9b7ae9c7e641392 (diff)
downloadhandlebars.js-adda0569e0ec3fc363af9efbb23f5304c6d80fe2.zip
handlebars.js-adda0569e0ec3fc363af9efbb23f5304c6d80fe2.tar.gz
handlebars.js-adda0569e0ec3fc363af9efbb23f5304c6d80fe2.tar.bz2
Refactor qunit unit tests
Allows for testing node, browser, and precompiled modes in the node tests. Also reorganizes the qunit spec file to provide better organization.
Diffstat (limited to 'spec/parser.js')
-rw-r--r--spec/parser.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/parser.js b/spec/parser.js
index 6fb8d9a..3f2a012 100644
--- a/spec/parser.js
+++ b/spec/parser.js
@@ -1,8 +1,8 @@
-var Handlebars = require('../lib/handlebars');
-
-require('should');
-
describe('parser', function() {
+ if (!Handlebars.print) {
+ return;
+ }
+
function ast_for(template) {
var ast = Handlebars.parse(template);
return Handlebars.print(ast);