1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Fix path separator issues in tests.

This commit is contained in:
Marc Häfner 2013-06-22 14:57:23 +02:00
parent 32e8e562ea
commit 13024e6911

View file

@ -45,9 +45,10 @@ test "compiler error formatting", ->
test "patchStackTrace line patching", ->
err = new Error 'error'
ok err.stack.match /test\/error_messages\.coffee:\d+:\d+\b/
ok err.stack.match /test[\/\\]error_messages\.coffee:\d+:\d+\b/
fs = require 'fs'
fs = require 'fs'
path = require 'path'
test "#2849: compilation error in a require()d file", ->
# Create a temporary file to require().
@ -59,7 +60,7 @@ test "#2849: compilation error in a require()d file", ->
require './test/syntax-error'
''',
"""
#{__dirname}/syntax-error.coffee:1:15: error: unexpected RELATION
#{path.join __dirname, 'syntax-error.coffee'}:1:15: error: unexpected RELATION
foo in bar or in baz
^^
"""