diff options
Diffstat (limited to 'spec/env')
-rw-r--r-- | spec/env/node.js | 3 | ||||
-rw-r--r-- | spec/env/runner.js | 13 |
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); + //}); + //}); }); |