forked from npm/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fund): open url for string shorthand
Trying to open url for a package that is using the string shorthand is currently broken using: `npm fund <pkg>` This commit fixes the issue and adds the missing unit and integration tests covering that usecase. Fixes npm#498 PR-URL: npm#501 Credit: @ruyadorno Close: npm#501 Reviewed-by: @mikemimik
- Loading branch information
Showing
5 changed files
with
102 additions
and
11 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
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 |
---|---|---|
|
@@ -47,6 +47,13 @@ http://example.com/donate | |
` | ||
|
||
exports[`test/tap/fund.js TAP fund using string shorthand > should open string-only url 1`] = ` | ||
Funding available at the following URL: | ||
https://example.com/sponsor | ||
` | ||
|
||
exports[`test/tap/fund.js TAP fund with no package containing funding > should print empty funding info 1`] = ` | ||
[email protected] | ||
|
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