Debian Codegraph @

tap-snapshots/test/lib/commands/fund.js.test.cjs

raw
1 /* IMPORTANT
2 * This snapshot file is auto-generated, but designed for humans.
3 * It should be checked into source control and tracked carefully.
4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5 * Make sure to inspect the output below. Do not ignore changes!
6 */
7 'use strict'
8 exports[`test/lib/commands/fund.js TAP fund a package with type and multiple sources > should print prompt select message 1`] = `
9 1: Foo funding available at the following URL: http://example.com/foo
10 2: Lorem funding available at the following URL: http://example.com/foo-lorem
11 Run \`npm fund [<package-spec>] --which=1\`, for example, to open the first funding URL listed in that package
12 `
13
14 exports[`test/lib/commands/fund.js TAP fund colors > should print output with color info 1`] = `
15 [email protected]
16 +-- http://example.com/a
17 | \`-- [email protected]
18 \`-- http://example.com/b
19 | \`-- [email protected], [email protected]
20 +-- http://example.com/d
21 | \`-- [email protected]
22 \`-- http://example.com/e
23 \`-- [email protected]
24 `
25
26 exports[`test/lib/commands/fund.js TAP fund containing multi-level nested deps with no funding > should omit dependencies with no funding declared 1`] = `
27 [email protected]
28 +-- https://example.com/lorem
29 | \`-- [email protected]
30 \`-- http://example.com/donate
31 \`-- [email protected]
32 `
33
34 exports[`test/lib/commands/fund.js TAP fund in which same maintainer owns all its deps > should print stack packages together 1`] = `
35 http://example.com/donate
36 \`-- [email protected], [email protected], [email protected], [email protected]
37 `
38
39 exports[`test/lib/commands/fund.js TAP fund pkg missing version number > should print name only 1`] = `
40 http://example.com/foo
41 \`-- foo
42 `
43
44 exports[`test/lib/commands/fund.js TAP fund using bad which value: index too high > should print message about invalid which 1`] = `
45 --which=100 is not a valid index
46 1: Funding available at the following URL: http://example.com
47 2: Funding available at the following URL: http://sponsors.example.com/me
48 3: Funding available at the following URL: http://collective.example.com
49 Run \`npm fund [<package-spec>] --which=1\`, for example, to open the first funding URL listed in that package
50 `
51
52 exports[`test/lib/commands/fund.js TAP fund using nested packages with multiple sources > should prompt with all available URLs 1`] = `
53 1: Funding available at the following URL: https://one.example.com
54 2: Funding available at the following URL: https://two.example.com
55 Run \`npm fund [<package-spec>] --which=1\`, for example, to open the first funding URL listed in that package
56 `
57
58 exports[`test/lib/commands/fund.js TAP fund with no package containing funding > should print empty funding info 1`] = `
59 [email protected]
60 `
61
62 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`] = `
63 [email protected]
64 +-- http://example.com/b
65 | \`-- [email protected]
66 \`-- http://example.com/c
67 \`-- [email protected]
68 `
69
70 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`] = `
71 [email protected]
72 \`-- https://example.com/a
73 | \`-- [email protected]
74 \`-- http://example.com/c
75 \`-- [email protected]
76 `
77
78 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`] = `
79 [email protected]
80 \`-- https://example.com/a
81 | \`-- [email protected]
82 \`-- http://example.com/c
83 \`-- [email protected]
84 `