Skip to content

Commit 7c05f2c

Browse files
committed
Cleanup tests, use snapshots
1 parent b5d9e28 commit 7c05f2c

File tree

2 files changed

+417
-546
lines changed

2 files changed

+417
-546
lines changed

__snapshots__/index.test.js.snap

+263
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,263 @@
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2+
3+
exports[`http://www.google.com/ 1`] = `http://www.google.com`;
4+
5+
exports[`https://cdn.rawgit.com/fregante/shorten-repo-url/d71718db/.gitignore 1`] = `<code>d71718db</code>/.gitignore (raw)`;
6+
7+
exports[`https://cdn.rawgit.com/fregante/shorten-repo-url/v0.12/.gitignore 1`] = `<code>v0.12</code>/.gitignore (raw)`;
8+
9+
exports[`https://cdn.rawgit.com/nodejs/node/d71718db/.gitignore 1`] = `nodejs/node@<code>d71718db</code>/.gitignore (raw)`;
10+
11+
exports[`https://cdn.rawgit.com/nodejs/node/v0.12/.gitignore 1`] = `nodejs/node@<code>v0.12</code>/.gitignore (raw)`;
12+
13+
exports[`https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement#parameters 1`] = `developer.mozilla.org/en-US/docs/Web/API/Document/createElement#parameters`;
14+
15+
exports[`https://example.com/nodejs/node/blob/cc8fc46/.gitignore 1`] = `example.com/nodejs/node/blob/cc8fc46/.gitignore`;
16+
17+
exports[`https://example.site/한글로-된-URL 1`] = `example.site/한글로-된-URL`;
18+
19+
exports[`https://github.com/ 1`] = `github.com`;
20+
21+
exports[`https://github.com/bfred-it/shorten-repo-url/network/dependencies 1`] = `bfred-it/shorten-repo-url (dependencies)`;
22+
23+
exports[`https://github.com/bfred-it/shorten-repo-url/network/dependents 1`] = `bfred-it/shorten-repo-url (dependents)`;
24+
25+
exports[`https://github.com/bfred-it/shorten-repo-url/wiki 1`] = `bfred-it/shorten-repo-url/wiki`;
26+
27+
exports[`https://github.com/features 1`] = `github.com/features`;
28+
29+
exports[`https://github.com/fregante/shorten-repo-url/ 1`] = `fregante/shorten-repo-url`;
30+
31+
exports[`https://github.com/fregante/shorten-repo-url/?tab=readme-ov-file 1`] = `fregante/shorten-repo-url`;
32+
33+
exports[`https://github.com/fregante/shorten-repo-url/archive/6.4.1.zip 1`] = `<code>6.4.1</code>.zip`;
34+
35+
exports[`https://github.com/fregante/shorten-repo-url/blame/cc8fc46/.gitignore 1`] = `<code>cc8fc46</code>/.gitignore (blame)`;
36+
37+
exports[`https://github.com/fregante/shorten-repo-url/blame/master/.gitignore 1`] = `<code>master</code>/.gitignore (blame)`;
38+
39+
exports[`https://github.com/fregante/shorten-repo-url/blame/v0.12/.gitignore 1`] = `<code>v0.12</code>/.gitignore (blame)`;
40+
41+
exports[`https://github.com/fregante/shorten-repo-url/blob/cc8fc46/.gitignore 1`] = `<code>cc8fc46</code>/.gitignore`;
42+
43+
exports[`https://github.com/fregante/shorten-repo-url/blob/master/.gitignore 1`] = `<code>master</code>/.gitignore`;
44+
45+
exports[`https://github.com/fregante/shorten-repo-url/blob/v0.12/.gitignore 1`] = `<code>v0.12</code>/.gitignore`;
46+
47+
exports[`https://github.com/fregante/shorten-repo-url/commit/cc8fc46.diff 1`] = `<code>cc8fc46</code>.diff`;
48+
49+
exports[`https://github.com/fregante/shorten-repo-url/commit/cc8fc46.patch 1`] = `<code>cc8fc46</code>.patch`;
50+
51+
exports[`https://github.com/fregante/shorten-repo-url/commits/cc8fc46/.gitignore 1`] = `<code>cc8fc46</code>/.gitignore (commits)`;
52+
53+
exports[`https://github.com/fregante/shorten-repo-url/commits/master/.gitignore 1`] = `<code>master</code>/.gitignore (commits)`;
54+
55+
exports[`https://github.com/fregante/shorten-repo-url/commits/v0.12/.gitignore 1`] = `<code>v0.12</code>/.gitignore (commits)`;
56+
57+
exports[`https://github.com/fregante/shorten-repo-url/compare 1`] = `fregante/shorten-repo-url/compare`;
58+
59+
exports[`https://github.com/fregante/shorten-repo-url/compare/d71718db6aa4feb8dc10edbad1134472468e971a 1`] = `<code>d71718d</code> (compare)`;
60+
61+
exports[`https://github.com/fregante/shorten-repo-url/compare/master 1`] = `<code>master</code> (compare)`;
62+
63+
exports[`https://github.com/fregante/shorten-repo-url/compare/master...master 1`] = `<code>master...master</code> (compare)`;
64+
65+
exports[`https://github.com/fregante/shorten-repo-url/contributors 1`] = `fregante/shorten-repo-url/contributors`;
66+
67+
exports[`https://github.com/fregante/shorten-repo-url/issues 1`] = `fregante/shorten-repo-url/issues`;
68+
69+
exports[`https://github.com/fregante/shorten-repo-url/issues?q=is%3Aissue++is%3Aopen+sort%3Aupdated-desc+&unrelated=true 1`] = `fregante/shorten-repo-url/issues?unrelated=true (is:open sort:updated-desc)`;
70+
71+
exports[`https://github.com/fregante/shorten-repo-url/issues?q=wow 1`] = `fregante/shorten-repo-url/issues (wow)`;
72+
73+
exports[`https://github.com/fregante/shorten-repo-url/labels 1`] = `fregante/shorten-repo-url/labels`;
74+
75+
exports[`https://github.com/fregante/shorten-repo-url/labels/npm 1`] = `npm (label)`;
76+
77+
exports[`https://github.com/fregante/shorten-repo-url/milestone/25 1`] = `fregante/shorten-repo-url/milestone/25`;
78+
79+
exports[`https://github.com/fregante/shorten-repo-url/milestones 1`] = `fregante/shorten-repo-url/milestones`;
80+
81+
exports[`https://github.com/fregante/shorten-repo-url/network 1`] = `fregante/shorten-repo-url/network`;
82+
83+
exports[`https://github.com/fregante/shorten-repo-url/projects 1`] = `fregante/shorten-repo-url/projects`;
84+
85+
exports[`https://github.com/fregante/shorten-repo-url/pull/123/checks 1`] = `#123 (checks)`;
86+
87+
exports[`https://github.com/fregante/shorten-repo-url/pull/123/commits 1`] = `#123 (commits)`;
88+
89+
exports[`https://github.com/fregante/shorten-repo-url/pull/123/files 1`] = `#123 (files)`;
90+
91+
exports[`https://github.com/fregante/shorten-repo-url/pulse 1`] = `fregante/shorten-repo-url/pulse`;
92+
93+
exports[`https://github.com/fregante/shorten-repo-url/releases 1`] = `fregante/shorten-repo-url/releases`;
94+
95+
exports[`https://github.com/fregante/shorten-repo-url/releases/download/6.4.1/now-macos 1`] = `<code>6.4.1</code> now-macos (download)`;
96+
97+
exports[`https://github.com/fregante/shorten-repo-url/releases/tag/v0.12.0 1`] = `<code>v0.12.0</code> (release)`;
98+
99+
exports[`https://github.com/fregante/shorten-repo-url/tree/d71718db6aa4feb8dc10edbad1134472468e971a 1`] = `<code>d71718d</code>`;
100+
101+
exports[`https://github.com/fregante/shorten-repo-url/tree/d71718db6aa4feb8dc10edbad1134472468e971a/doc 1`] = `<code>d71718d</code>/doc`;
102+
103+
exports[`https://github.com/fregante/shorten-repo-url/tree/master/doc 1`] = `<code>master</code>/doc`;
104+
105+
exports[`https://github.com/fregante/shorten-repo-url/tree/v0.12 1`] = `<code>v0.12</code>`;
106+
107+
exports[`https://github.com/fregante/shorten-repo-url/tree/v0.12/doc 1`] = `<code>v0.12</code>/doc`;
108+
109+
exports[`https://github.com/fregante/shorten-repo-url/wiki/%22Can-you-add-this-feature%3F%22 1`] = `Wiki: "Can you add this feature?"`;
110+
111+
exports[`https://github.com/issues 1`] = `github.com/issues`;
112+
113+
exports[`https://github.com/issues?q=is%3Aissue++is%3Aopen+sort%3Aupdated-desc+&unrelated=true 1`] = `github.com/issues?unrelated=true (is:open sort:updated-desc)`;
114+
115+
exports[`https://github.com/marketplace 1`] = `github.com/marketplace`;
116+
117+
exports[`https://github.com/network/dependencies 1`] = `github.com/network/dependencies`;
118+
119+
exports[`https://github.com/nodejs 1`] = `@nodejs`;
120+
121+
exports[`https://github.com/nodejs/node/ 1`] = `nodejs/node`;
122+
123+
exports[`https://github.com/nodejs/node/blame/cc8fc46/.gitignore 1`] = `nodejs/node@<code>cc8fc46</code>/.gitignore (blame)`;
124+
125+
exports[`https://github.com/nodejs/node/blame/master/.gitignore 1`] = `nodejs/node@<code>master</code>/.gitignore (blame)`;
126+
127+
exports[`https://github.com/nodejs/node/blame/v0.12/.gitignore 1`] = `nodejs/node@<code>v0.12</code>/.gitignore (blame)`;
128+
129+
exports[`https://github.com/nodejs/node/blob/cc8fc46/.gitignore 1`] = `nodejs/node@<code>cc8fc46</code>/.gitignore`;
130+
131+
exports[`https://github.com/nodejs/node/blob/master/.gitignore 1`] = `nodejs/node@<code>master</code>/.gitignore`;
132+
133+
exports[`https://github.com/nodejs/node/blob/v0.12/.gitignore 1`] = `nodejs/node@<code>v0.12</code>/.gitignore`;
134+
135+
exports[`https://github.com/nodejs/node/commit/cc8fc46.diff 1`] = `nodejs/node@<code>cc8fc46</code>.diff`;
136+
137+
exports[`https://github.com/nodejs/node/commit/cc8fc46.patch 1`] = `nodejs/node@<code>cc8fc46</code>.patch`;
138+
139+
exports[`https://github.com/nodejs/node/commits/cc8fc46/.gitignore 1`] = `nodejs/node@<code>cc8fc46</code>/.gitignore (commits)`;
140+
141+
exports[`https://github.com/nodejs/node/commits/master/.gitignore 1`] = `nodejs/node@<code>master</code>/.gitignore (commits)`;
142+
143+
exports[`https://github.com/nodejs/node/commits/v0.12/.gitignore 1`] = `nodejs/node@<code>v0.12</code>/.gitignore (commits)`;
144+
145+
exports[`https://github.com/nodejs/node/compare 1`] = `nodejs/node/compare`;
146+
147+
exports[`https://github.com/nodejs/node/compare/d71718db6aa4feb8dc10edbad1134472468e971a 1`] = `nodejs/node@<code>d71718d</code> (compare)`;
148+
149+
exports[`https://github.com/nodejs/node/compare/master 1`] = `nodejs/node@<code>master</code> (compare)`;
150+
151+
exports[`https://github.com/nodejs/node/compare/master...master 1`] = `nodejs/node@<code>master...master</code> (compare)`;
152+
153+
exports[`https://github.com/nodejs/node/contributors 1`] = `nodejs/node/contributors`;
154+
155+
exports[`https://github.com/nodejs/node/graphs/commit-activity 1`] = `nodejs/node/graphs/commit-activity`;
156+
157+
exports[`https://github.com/nodejs/node/labels 1`] = `nodejs/node/labels`;
158+
159+
exports[`https://github.com/nodejs/node/labels/Please%21%20♥ 1`] = `nodejs/node/Please! ♥ (label)`;
160+
161+
exports[`https://github.com/nodejs/node/labels/npm 1`] = `nodejs/node/npm (label)`;
162+
163+
exports[`https://github.com/nodejs/node/milestone/25 1`] = `nodejs/node/milestone/25`;
164+
165+
exports[`https://github.com/nodejs/node/milestones 1`] = `nodejs/node/milestones`;
166+
167+
exports[`https://github.com/nodejs/node/network 1`] = `nodejs/node/network`;
168+
169+
exports[`https://github.com/nodejs/node/projects 1`] = `nodejs/node/projects`;
170+
171+
exports[`https://github.com/nodejs/node/pull/123/files 1`] = `nodejs/node#123 (files)`;
172+
173+
exports[`https://github.com/nodejs/node/pulse 1`] = `nodejs/node/pulse`;
174+
175+
exports[`https://github.com/nodejs/node/releases 1`] = `nodejs/node/releases`;
176+
177+
exports[`https://github.com/nodejs/node/releases/tag/v0.12.0 1`] = `nodejs/node@<code>v0.12.0</code> (release)`;
178+
179+
exports[`https://github.com/nodejs/node/tree/d71718db6aa4feb8dc10edbad1134472468e971a 1`] = `nodejs/node@<code>d71718d</code>`;
180+
181+
exports[`https://github.com/nodejs/node/tree/d71718db6aa4feb8dc10edbad1134472468e971a/doc 1`] = `nodejs/node@<code>d71718d</code>/doc`;
182+
183+
exports[`https://github.com/nodejs/node/tree/master/doc 1`] = `nodejs/node@<code>master</code>/doc`;
184+
185+
exports[`https://github.com/nodejs/node/tree/v0.12 1`] = `nodejs/node@<code>v0.12</code>`;
186+
187+
exports[`https://github.com/nodejs/node/tree/v0.12/doc 1`] = `nodejs/node@<code>v0.12</code>/doc`;
188+
189+
exports[`https://github.com/nodejs/node/wiki 1`] = `nodejs/node/wiki`;
190+
191+
exports[`https://github.com/nodejs/shorten-repo-url/ 1`] = `nodejs/shorten-repo-url`;
192+
193+
exports[`https://github.com/pulls 1`] = `github.com/pulls`;
194+
195+
exports[`https://github.com/pulls?q=is%3Apr++is%3Aopen+sort%3Aupdated-desc+&unrelated=true 1`] = `github.com/pulls?unrelated=true (is:open sort:updated-desc)`;
196+
197+
exports[`https://github.com/refined-github/refined-github/labels/Please%21%20♥%EF%B8%8E 1`] = `refined-github/refined-github/Please! ♥︎ (label)`;
198+
199+
exports[`https://github.com/refined-github/refined-github/wiki/%22Can-you-add-this-feature%3F%22 1`] = `Wiki: "Can you add this feature?" (refined-github/refined-github)`;
200+
201+
exports[`https://github.com/refined-github/refined-github/wiki/%22Can-you-add-this-feature%3F%22# 1`] = `Wiki: "Can you add this feature?" (refined-github/refined-github)`;
202+
203+
exports[`https://github.com/refined-github/refined-github/wiki/%22Can-you-add-this-feature%3F%22#3-it-doesnt-require-options 1`] = `Wiki: "Can you add this feature?" (3 it doesnt require options) (refined-github/refined-github)`;
204+
205+
exports[`https://github.com/settings/profile 1`] = `github.com/settings/profile`;
206+
207+
exports[`https://github.com/sindresorhus 1`] = `@sindresorhus`;
208+
209+
exports[`https://github.com/sindresorhus/notifier-for-github/pull/253/files/6b4489d417c9425dc27c5fb8d6b4a8518debd035..60cdcf3c3646164441bf8f037cef620479cdec59 1`] = `<code>6b4489d4..60cdcf3c</code> (#253)`;
210+
211+
exports[`https://github.com/trending 1`] = `github.com/trending`;
212+
213+
exports[`https://github.com/trending/developers 1`] = `github.com/trending/developers`;
214+
215+
exports[`https://github.com/zeit/now-cli/archive/6.4.1.zip 1`] = `zeit/now-cli@<code>6.4.1</code>.zip`;
216+
217+
exports[`https://github.com/zeit/now-cli/releases/download/6.4.1/now-macos 1`] = `zeit/now-cli@<code>6.4.1</code> now-macos (download)`;
218+
219+
exports[`https://raw.githubusercontent.com/fregante/shorten-repo-url/d71718db/.gitignore 1`] = `<code>d71718db</code>/.gitignore (raw)`;
220+
221+
exports[`https://raw.githubusercontent.com/fregante/shorten-repo-url/master/.gitignore 1`] = `<code>master</code>/.gitignore (raw)`;
222+
223+
exports[`https://raw.githubusercontent.com/fregante/shorten-repo-url/v0.12/.gitignore 1`] = `<code>v0.12</code>/.gitignore (raw)`;
224+
225+
exports[`https://raw.githubusercontent.com/nodejs/node/d71718db/.gitignore 1`] = `nodejs/node@<code>d71718db</code>/.gitignore (raw)`;
226+
227+
exports[`https://raw.githubusercontent.com/nodejs/node/master/.gitignore 1`] = `nodejs/node@<code>master</code>/.gitignore (raw)`;
228+
229+
exports[`https://raw.githubusercontent.com/nodejs/node/v0.12/.gitignore 1`] = `nodejs/node@<code>v0.12</code>/.gitignore (raw)`;
230+
231+
exports[`https://rawgit.com/fregante/shorten-repo-url/master/.gitignore 1`] = `<code>master</code>/.gitignore (raw)`;
232+
233+
exports[`https://rawgit.com/nodejs/node/master/.gitignore 1`] = `nodejs/node@<code>master</code>/.gitignore (raw)`;
234+
235+
exports[`https://togithub.com/fregante/shorten-repo-url/commit/98c6175b0cbd4caca71d24e68e57b942b0dfb549 1`] = `<code>98c6175</code>`;
236+
237+
exports[`https://togithub.com/fregante/shorten-repo-url/issues/25 1`] = `#25`;
238+
239+
exports[`https://togithub.com/fregante/shorten-repo-url/issues/28#issue-850900171 1`] = `#28 (comment)`;
240+
241+
exports[`https://togithub.com/fregante/shorten-repo-url/pull/32 1`] = `#32`;
242+
243+
exports[`https://togithub.com/fregante/shorten-repo-url/pull/32/files 1`] = `#32 (files)`;
244+
245+
exports[`https://togithub.com/fregante/shorten-repo-url/pull/33#discussion_r750069394 1`] = `#33 (review)`;
246+
247+
exports[`https://togithub.com/fregante/shorten-repo-url/pull/33#pullrequestreview-801229042 1`] = `#33 (review)`;
248+
249+
exports[`https://togithub.com/nodejs/node/pull/123 1`] = `nodejs/node#123`;
250+
251+
exports[`https://togithub.com/nodejs/node/pull/123/files 1`] = `nodejs/node#123 (files)`;
252+
253+
exports[`https://togithub.com/refined-github/refined-github/commit/4f270c4f50e0a2a20085a6e92095117f10340322 1`] = `refined-github/refined-github@<code>4f270c4</code>`;
254+
255+
exports[`https://togithub.com/refined-github/refined-github/commit/e81a9646b448d90c7e02ab41332cab0507dccbbd#commitcomment-60089354 1`] = `refined-github/refined-github@<code>e81a964</code> (comment)`;
256+
257+
exports[`https://www.google.com/ 1`] = `google.com`;
258+
259+
exports[`https://www.npmjs.com/ 1`] = `npmjs.com`;
260+
261+
exports[`https://www.npmjs.com/packaasdge/node 1`] = `npmjs.com/packaasdge/node`;
262+
263+
exports[`https://wwww.google.com/ 1`] = `wwww.google.com`;

0 commit comments

Comments
 (0)