Make __filename normalized
This can make sure __filename and __dirname on Windows use "\" as path delimeter.
This commit is contained in:
parent
dba2fa31b6
commit
8c29ffd084
2 changed files with 3 additions and 3 deletions
|
@ -19,8 +19,8 @@ describe 'ipc module', ->
|
|||
assert.equal a.id, 1127
|
||||
|
||||
it 'should search module from the user app', ->
|
||||
assert.equal remote.process.mainModule.filename, path.resolve(__dirname, 'static', 'main.js')
|
||||
assert.equal remote.process.mainModule.paths[0], path.resolve(__dirname, 'static', 'node_modules')
|
||||
assert.equal path.normalize(remote.process.mainModule.filename), path.resolve(__dirname, 'static', 'main.js')
|
||||
assert.equal path.normalize(remote.process.mainModule.paths[0]), path.resolve(__dirname, 'static', 'node_modules')
|
||||
|
||||
describe 'remote.createFunctionWithReturnValue', ->
|
||||
it 'should be called in browser synchronously', ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue