diff --git a/packages/misskey-js/test/acct.ts b/packages/misskey-js/test/acct.ts index 69be10261b..2a9ab2457f 100644 --- a/packages/misskey-js/test/acct.ts +++ b/packages/misskey-js/test/acct.ts @@ -51,9 +51,8 @@ function testParseUrl(fn: (acct: string) => acct.Acct) { expect(() => fn('https://example.com/@')).toThrowError(); }); - it('parses url ended with /', () => { - const res = fn('https://example.com/@alice/'); - expect(res).toEqual({ username: 'alice', host: 'example.com' }); + it('throws ended with /', () => { + expect(() => fn('https://example.com/@alice/')).toThrowError(); }); it('throws url have @username path but ended with sub directory', () => {