From d8eb465eb9c1c334d9d79273528e7932824d22e4 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 17 Dec 2013 23:03:36 +0800 Subject: [PATCH] Fix protocol spec on Windows. --- spec/api-protocol-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/api-protocol-spec.coffee b/spec/api-protocol-spec.coffee index d017b85e5fea..0a5a713eaac0 100644 --- a/spec/api-protocol-spec.coffee +++ b/spec/api-protocol-spec.coffee @@ -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}"