Merge branch 'acct-parse-url' into lookup-api

This commit is contained in:
tamaina 2025-08-30 17:28:41 +09:00
commit 020400cfe7
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ function testParseUrl(fn: (acct: string) => acct.Acct) {
it('throws url with hash', () => { it('throws url with hash', () => {
expect(() => fn('https://example.com/@alice#fragment')).toThrowError(); expect(() => fn('https://example.com/@alice#fragment')).toThrowError();
}); });
it('throws not root path', () => {
expect(() => fn('https://example.com/users/@alice')).toThrowError();
});
} }
describe('acct.parse', () => { describe('acct.parse', () => {