diff --git a/packages/misskey-js/test/acct.ts b/packages/misskey-js/test/acct.ts index 4200e593de..69be10261b 100644 --- a/packages/misskey-js/test/acct.ts +++ b/packages/misskey-js/test/acct.ts @@ -67,6 +67,10 @@ function testParseUrl(fn: (acct: string) => acct.Acct) { it('throws url with hash', () => { expect(() => fn('https://example.com/@alice#fragment')).toThrowError(); }); + + it('throws not root path', () => { + expect(() => fn('https://example.com/users/@alice')).toThrowError(); + }); } describe('acct.parse', () => {