From b277b6ef55c70448f4ab5e81b8351c2755c4510d Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 30 Aug 2025 19:03:08 +0900 Subject: [PATCH] fix --- packages/misskey-js/test/acct.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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', () => {