summaryrefslogtreecommitdiffstats
path: root/spec/env
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2013-07-24 05:03:27 +0000
committerYehuda Katz <wycats@gmail.com>2013-07-24 05:03:27 +0000
commitf5c8484ea0c1ac1aec6994ad3b5928fb67b7aa62 (patch)
tree8e92df6cccab8ff4da78c11d90d4e534a19374b8 /spec/env
parentda130f7745fc338d7ea31c60d9954ab6e0e1511a (diff)
downloadhandlebars.js-f5c8484ea0c1ac1aec6994ad3b5928fb67b7aa62.zip
handlebars.js-f5c8484ea0c1ac1aec6994ad3b5928fb67b7aa62.tar.gz
handlebars.js-f5c8484ea0c1ac1aec6994ad3b5928fb67b7aa62.tar.bz2
Further progress towards modularization.
At this point, I have only 2 fails in the Node build, but I'm doing a bunch of manual stuff locally and still have a bunch of hacks.
Diffstat (limited to 'spec/env')
-rw-r--r--spec/env/node.js3
-rw-r--r--spec/env/runner.js13
2 files changed, 10 insertions, 6 deletions
diff --git a/spec/env/node.js b/spec/env/node.js
index fe34f94..e5349a1 100644
--- a/spec/env/node.js
+++ b/spec/env/node.js
@@ -1,10 +1,11 @@
require('./common');
-global.Handlebars = require('../../lib/handlebars');
+global.Handlebars = require('../../zomg/lib/handlebars');
global.CompilerContext = {
compile: function(template, options) {
var templateSpec = Handlebars.precompile(template, options);
+ console.log(templateSpec);
return Handlebars.template(eval('(' + templateSpec + ')'));
},
compileWithPartial: function(template, options) {
diff --git a/spec/env/runner.js b/spec/env/runner.js
index 919f0ae..0d0cef2 100644
--- a/spec/env/runner.js
+++ b/spec/env/runner.js
@@ -6,16 +6,19 @@ var errors = 0,
testDir = path.dirname(__dirname),
grep = process.argv[2];
+var files = [ testDir + "/basic.js" ];
+
var files = fs.readdirSync(testDir)
.filter(function(name) { return (/.*\.js$/).test(name); })
.map(function(name) { return testDir + '/' + name; });
run('./node', function() {
- run('./browser', function() {
- run('./runtime', function() {
- process.exit(errors);
- });
- });
+ process.exit(errors);
+ //run('./browser', function() {
+ //run('./runtime', function() {
+ //process.exit(errors);
+ //});
+ //});
});