2020-10-02 17:52:19 -04:00
/ * I M P O R T A N T
* This snapshot file is auto - generated , but designed for humans .
* It should be checked into source control and tracked carefully .
* Re - generate by setting TAP _SNAPSHOT = 1 and running tests .
* Make sure to inspect the output below . Do not ignore changes !
* /
'use strict'
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/fund.js TAP fund a package with type and multiple sources > should print prompt select message 1 ` ] = `
2020-10-02 17:52:19 -04:00
1 : Foo funding available at the following URL : http : //example.com/foo
2 : Lorem funding available at the following URL : http : //example.com/foo-lorem
2023-01-16 22:38:23 -05:00
Run \ ` npm fund [<package-spec>] --which=1 \` , for example, to open the first funding URL listed in that package
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/fund.js TAP fund colors > should print output with color info 1 ` ] = `
2024-04-30 23:53:22 -07:00
test - fund - colors @ 1.0 . 0
+ -- [ 34 mhttp : //example.com/a [39m
| \ ` -- a@1.0.0
\ ` -- [34mhttp://example.com/b [39m
| \ ` -- b@1.0.0 [2m, [22m c@1.0.0
+ -- [ 34 mhttp : //example.com/d [39m
| \ ` -- d@1.0.0
\ ` -- [34mhttp://example.com/e [39m
\ ` -- e@1.0.0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/fund.js TAP fund containing multi-level nested deps with no funding > should omit dependencies with no funding declared 1 ` ] = `
2020-10-02 17:52:19 -04:00
nested - no - funding - packages @ 1.0 . 0
+ -- https : //example.com/lorem
| \ ` -- lorem@1.0.0
\ ` -- http://example.com/donate
\ ` -- bar@1.0.0
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/fund.js TAP fund in which same maintainer owns all its deps > should print stack packages together 1 ` ] = `
2020-10-02 17:52:19 -04:00
http : //example.com/donate
\ ` -- maintainer-owns-all-deps@1.0.0, dep-foo@1.0.0, dep-sub-foo@1.0.0, dep-bar@1.0.0
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/fund.js TAP fund pkg missing version number > should print name only 1 ` ] = `
2020-10-02 17:52:19 -04:00
http : //example.com/foo
\ ` -- foo
2023-01-16 22:38:23 -05:00
`
2020-10-02 17:52:19 -04:00
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/fund.js TAP fund using bad which value: index too high > should print message about invalid which 1 ` ] = `
-- which = 100 is not a valid index
1 : Funding available at the following URL : http : //example.com
2 : Funding available at the following URL : http : //sponsors.example.com/me
3 : Funding available at the following URL : http : //collective.example.com
Run \ ` npm fund [<package-spec>] --which=1 \` , for example, to open the first funding URL listed in that package
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/fund.js TAP fund using nested packages with multiple sources > should prompt with all available URLs 1 ` ] = `
2020-10-02 17:52:19 -04:00
1 : Funding available at the following URL : https : //one.example.com
2 : Funding available at the following URL : https : //two.example.com
2023-01-16 22:38:23 -05:00
Run \ ` npm fund [<package-spec>] --which=1 \` , for example, to open the first funding URL listed in that package
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/fund.js TAP fund with no package containing funding > should print empty funding info 1 ` ] = `
2020-10-02 17:52:19 -04:00
no - funding - package @ 0.0 . 0
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/fund.js TAP sub dep with fund info and a parent with no funding info > should nest sub dep as child of root 1 ` ] = `
2020-10-02 17:52:19 -04:00
test - multiple - funding - sources @ 1.0 . 0
+ -- http : //example.com/b
| \ ` -- b@1.0.0
\ ` -- http://example.com/c
\ ` -- c@1.0.0
`
2021-05-13 16:18:53 -04:00
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/fund.js TAP workspaces filter funding info by a specific workspace name > should display only filtered workspace name and its deps 1 ` ] = `
2021-05-13 16:18:53 -04:00
workspaces - support @ 1.0 . 0
\ ` -- https://example.com/a
| \ ` -- a@1.0.0
\ ` -- http://example.com/c
\ ` -- c@1.0.0
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/fund.js TAP workspaces filter funding info by a specific workspace path > should display only filtered workspace name and its deps 1 ` ] = `
2021-05-13 16:18:53 -04:00
workspaces - support @ 1.0 . 0
\ ` -- https://example.com/a
| \ ` -- a@1.0.0
\ ` -- http://example.com/c
\ ` -- c@1.0.0
`