Skip to content

Commit e4d4fe5

Browse files
one more test url
1 parent 8f6bda3 commit e4d4fe5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

index.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,21 @@ test('getRepositoryInfo', () => {
256256
],
257257
}
258258
`);
259+
expect(getRepositoryInfoAdapter('https://github.com/refined-github/sandbox/blob/bracket-in-path/foo%2F%5Bbar%5D%2F%2Fbaz')).toMatchInlineSnapshot(`
260+
{
261+
"name": "sandbox",
262+
"nameWithOwner": "refined-github/sandbox",
263+
"owner": "refined-github",
264+
"path": "blob/bracket-in-path/foo/[bar]/baz",
265+
"pathParts": [
266+
"blob",
267+
"bracket-in-path",
268+
"foo",
269+
"[bar]",
270+
"baz",
271+
],
272+
}
273+
`);
259274
expect(getRepositoryInfoAdapter('https://github.com/refined-github/sandbox/blob/bracket-in-path/foo%252F%5Bbar%5D%252Fbaz')).toMatchInlineSnapshot(`
260275
{
261276
"name": "sandbox",

0 commit comments

Comments
 (0)