diff --git a/lib/stitch.js b/lib/stitch.js index 967fb2b..0fd6db6 100644 --- a/lib/stitch.js +++ b/lib/stitch.js @@ -1,6 +1,6 @@ (function() { - var CoffeeScript, Package, async, compilers, eco, extname, fs, join, normalize, _, _ref; - var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; + var CoffeeScript, Package, async, compilers, eco, extname, fs, join, normalize, _, _ref, + __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; _ = require('underscore'); diff --git a/test/test_stitch.coffee b/test/test_stitch.coffee index 112973e..f902e00 100644 --- a/test/test_stitch.coffee +++ b/test/test_stitch.coffee @@ -88,7 +88,7 @@ module.exports = test.expect 1 dirname = fixtures + "/empty" - fs.mkdirSync dirname, 0755 + fs.mkdirSync dirname, 0o0755 defaultPackage.getFilesInTree dirname, (err, files) -> test.ok !err fs.rmdirSync dirname @@ -125,9 +125,9 @@ module.exports = source = require('fs').readFileSync filename, 'utf8' source = "alert(#{sys.inspect source});" module._compile source, filename - package = stitch.createPackage options + stitchPackage = stitch.createPackage options - package.compileFile altFixtures + "/hello.alert", (err, source) -> + stitchPackage.compileFile altFixtures + "/hello.alert", (err, source) -> test.same "alert('hello world\\n');", source test.done()