Merge branch 'acct-parse-url' into lookup-api
This commit is contained in:
commit
020400cfe7
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue