test(capture): cover empty URL userinfo markers
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
import { expect, it } from "vitest";
|
||||||
|
|
||||||
|
import { parseRecordedTransportUrl } from "./recordedTransportUrl.js";
|
||||||
|
|
||||||
|
it("recognizes an empty userinfo marker at the authority start", () => {
|
||||||
|
expect(parseRecordedTransportUrl("https://@host")).toMatchObject({
|
||||||
|
origin: "https://host",
|
||||||
|
path: "/",
|
||||||
|
credentials: { start: 8, end: 9 },
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user