Skip to content

Commit e8ab82e

Browse files
committed
chore: use snapshots
1 parent e5b049c commit e8ab82e

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

src/generators/api-links/test/fixtures.test.mjs

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,34 @@ describe('api links', () => {
1919
input: [sourceFile],
2020
});
2121

22-
const actualOutput = await apiLinks.generate(astJsResult, {});
22+
const actualOutput = await apiLinks.generate(astJsResult, {
23+
gitRef: {
24+
protocols: ['https'],
25+
protocol: 'https',
26+
port: '',
27+
resource: 'github.com',
28+
host: 'github.com',
29+
user: '',
30+
password: '',
31+
pathname: '/nodejs/node/tree/HEAD',
32+
hash: '',
33+
search: '',
34+
href: 'https://github.com/nodejs/node/tree/HEAD',
35+
query: {},
36+
parse_failed: false,
37+
token: '',
38+
source: 'github.com',
39+
git_suffix: false,
40+
name: 'node',
41+
owner: 'nodejs',
42+
commit: 'HEAD',
43+
ref: 'HEAD',
44+
filepathtype: 'tree',
45+
filepath: '',
46+
organization: 'nodejs',
47+
full_name: 'nodejs/node',
48+
},
49+
});
2350

2451
for (const [k, v] of Object.entries(actualOutput)) {
2552
actualOutput[k] = v.replace(/.*(?=lib\/)/, '');

0 commit comments

Comments
 (0)