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', () => {
|
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', () => {
|
||||||
|
|
Loading…
Reference in New Issue