in src/assert.ts [17:44]
export function assertStringEquals(
name: string,
actual: unknown,
expected: string,
errorConstructor: AssertionErrorConstructor = FailedAssertionError
): void {
if (!actual) {
throw new errorConstructor(
`Missing ${name}. Expected: ${expected}`,
actual,
expected
);
}
if (typeof actual !== "string") {
throw new errorConstructor(
`${name} is not of type string`,
actual,
expected
);
}
if (expected !== actual) {
throw new errorConstructor(
`${name} not allowed: ${actual}. Expected: ${expected}`,
actual,
expected
);
}
}