From 0aa8da80351ace63dc549fb14a14251320f2c456 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 12 Nov 2024 14:42:07 +0100 Subject: [PATCH] test: fix csharp har tests on Windows (#33556) --- 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, });