diff options
author | Jordan Harband <ljharb@gmail.com> | 2020-01-28 02:29:04 +0300 |
---|---|---|
committer | Darcy Clarke <darcy@darcyclarke.me> | 2020-02-25 18:53:24 +0300 |
commit | 30f170877954acd036cb234a581e4eb155049b82 (patch) | |
tree | d849e529d0b0bce99fa8d44adc64c2199c743c7b /tap-snapshots | |
parent | 373224b16e019b7b63d8f0b4c5d4adb7e5cb80dd (diff) |
fund: support multiple funding sources
See https://github.com/npm/rfcs/pull/68
PR-URL: https://github.com/npm/cli/pull/731
Credit: @
Close: #731
Reviewed-by: @Darcy Clarke
Diffstat (limited to 'tap-snapshots')
-rw-r--r-- | tap-snapshots/test-tap-fund.js-TAP.test.js | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/tap-snapshots/test-tap-fund.js-TAP.test.js b/tap-snapshots/test-tap-fund.js-TAP.test.js index eb3183a27..963c59f3e 100644 --- a/tap-snapshots/test-tap-fund.js-TAP.test.js +++ b/tap-snapshots/test-tap-fund.js-TAP.test.js @@ -7,13 +7,12 @@ 'use strict' exports[`test/tap/fund.js TAP fund containing multi-level nested deps with no funding > should omit dependencies with no funding declared 1`] = ` nested-no-funding-packages@1.0.0 -+-- lorem@1.0.0 -| \`-- url: https://example.com/lorem -\`-- bar@1.0.0 - +-- type: individual - +-- url: http://example.com/donate ++-- https://example.com/lorem +| \`-- lorem@1.0.0 ++-- http://example.com/donate +| \`-- bar@1.0.0 +\`-- https://example.com/sponsor \`-- sub-bar@1.0.0 - \`-- url: https://example.com/sponsor ` @@ -24,22 +23,36 @@ exports[`test/tap/fund.js TAP fund does not support global > should throw EFUNDG exports[`test/tap/fund.js TAP fund does not support global > should write error msgs to stderr 1`] = ` npm ERR! code EFUNDGLOBAL -npm ERR! \`npm fund\` does not support globals +npm ERR! \`npm fund\` does not support global packages ` exports[`test/tap/fund.js TAP fund does not support global, using --json option > should write error msgs to stderr 1`] = ` npm ERR! code EFUNDGLOBAL -npm ERR! \`npm fund\` does not support globals +npm ERR! \`npm fund\` does not support global packages ` exports[`test/tap/fund.js TAP fund in which same maintainer owns all its deps > should print stack packages together 1`] = ` -maintainer-owns-all-deps@1.0.0, dep-bar@1.0.0, dep-sub-foo@1.0.0, dep-foo@1.0.0 -+-- type: individual -\`-- url: http://example.com/donate +maintainer-owns-all-deps@1.0.0 +\`-- http://example.com/donate + \`-- dep-bar@1.0.0, dep-foo@1.0.0, dep-sub-foo@1.0.0 ` +exports[`test/tap/fund.js TAP fund using nested packages with multiple sources > should prompt with all available URLs 1`] = ` +1: Funding available at the following URL: https://one.example.com +2: Funding available at the following URL: https://two.example.com +Run \`npm fund [<@scope>/]<pkg> --which=1\`, for example, to open the first funding URL listed in that package + +` + +exports[`test/tap/fund.js TAP fund using nested packages with multiple sources, with a source number > should open the numbered URL 1`] = ` +Funding available at the following URL: + +https://one.example.com + +` + exports[`test/tap/fund.js TAP fund using package argument with no browser > should open funding url 1`] = ` individual funding available at the following URL: |