Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

minor fixes for running tests. #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/stitch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test/test_stitch.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down