Fix protocol spec on Windows.
This commit is contained in:
parent
c04a9933cc
commit
d8eb465eb9
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue