From 82441c1caf0edba41b90a1c134c65a7425bb8884 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 12 Nov 2024 14:03:32 +0100 Subject: [PATCH] test: fix csharp har tests on Windows --- tests/library/inspector/cli-codegen-csharp.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/library/inspector/cli-codegen-csharp.spec.ts b/tests/library/inspector/cli-codegen-csharp.spec.ts index 865b916bef..ffa32ceaf5 100644 --- a/tests/library/inspector/cli-codegen-csharp.spec.ts +++ b/tests/library/inspector/cli-codegen-csharp.spec.ts @@ -201,7 +201,7 @@ for (const testFramework of ['nunit', 'mstest'] as const) { test(`should work with --save-har in ${testFramework}`, async ({ runCLI }, testInfo) => { const harFileName = testInfo.outputPath('har.har'); - const expectedResult = `await context.RouteFromHARAsync("${harFileName}");`; + const expectedResult = `await context.RouteFromHARAsync(${JSON.stringify(harFileName)});`; const cli = runCLI([`--target=csharp-${testFramework}`, `--save-har=${harFileName}`], { autoExitWhen: expectedResult, });