From bb3c9357a104fabaa7b0820070167d5490f4a2fd Mon Sep 17 00:00:00 2001 From: Sebastian Riedel Date: Thu, 21 Sep 2023 04:51:59 +0200 Subject: [PATCH] Try using relative paths instead of file URLs --- src/user-agent/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user-agent/test.ts b/src/user-agent/test.ts index 8985cde7..0a2283f2 100644 --- a/src/user-agent/test.ts +++ b/src/user-agent/test.ts @@ -46,7 +46,7 @@ export class TestUserAgent extends MockUserAgent { */ assert(name: string, args: any[], msg: string, skip: SkipFunction): void { const test: any = this._assert ?? assert; - test[name](...args, msg, {stack: this._stack.captureString(10, skip).replaceAll(/file:\/\/(?!\/)/g, 'file:///')}); + test[name](...args, msg, {stack: this._stack.captureString(10, skip).replaceAll(/file:\/\/(?!\/)/g, '')}); } /**