mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-23 11:27:58 +08:00
Fix protocol spec on Windows.
This commit is contained in:
@@ -116,7 +116,7 @@ describe 'protocol module', ->
|
||||
protocol.interceptProtocol targetScheme, (request) ->
|
||||
if process.platform is 'win32'
|
||||
pathInUrl = path.normalize request.url.substr(8)
|
||||
assert.equal pathInUrl, __filename
|
||||
assert.equal pathInUrl.toLowerCase(), __filename.toLowerCase()
|
||||
else
|
||||
assert.equal request.url, "#{targetScheme}://#{__filename}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user