Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

SourceControlProvider.test.ts

12 lines437 Bytes

1import { assert, it } from "@effect/vitest";
2​
3import { transportSafeSourceControlErrorValue } from "./SourceControlProvider.ts";
4​
5it("removes URL credentials, query parameters, and fragments from error transport values", () => {
6 assert.strictEqual(
7 transportSafeSourceControlErrorValue(
8 "https://user:secret@example.test/org/repo/pull/42?token=secret#discussion",
9 ),
10 "https://example.test/org/repo/pull/42",
11 );
12});