-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(browser): sign sort fix * feat: node env >=8 * feat: test ci
- Loading branch information
1 parent
f5de168
commit f82bf8f
Showing
4 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,10 @@ exports.buildCanonicalizedResource = function buildCanonicalizedResource(resourc | |
canonicalizedResource += separatorString + parameters.join('&'); | ||
} else if (parameters) { | ||
const compareFunc = (entry1, entry2) => { | ||
if (entry1[0] >= entry2[0]) { | ||
if (entry1[0] > entry2[0]) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
binghaiwang
Author
Contributor
|
||
return 1; | ||
} else if (entry1[0] < entry2[0]) { | ||
return -1; | ||
} | ||
return 0; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
为何没有对应的单元测试。。。