mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04: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