From 635fa4b72ee913f3028bf6be54c40393edbc259d Mon Sep 17 00:00:00 2001 From: Mark McCulloh Date: Wed, 22 Nov 2023 21:03:54 -0500 Subject: [PATCH] chore(sdk): fix node.test.w test on windows (#5035) Chose not to `.replace("\\", "/")` to make the intention as explicit as possible *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*. --- examples/tests/sdk_tests/std/node.test.w | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tests/sdk_tests/std/node.test.w b/examples/tests/sdk_tests/std/node.test.w index 6380cc8e2cb..9620dc58a80 100644 --- a/examples/tests/sdk_tests/std/node.test.w +++ b/examples/tests/sdk_tests/std/node.test.w @@ -8,7 +8,7 @@ let root = std.Node.of(bucket).root; assert(app.workdir.endsWith(".wing")); expect.equal(app.workdir, root.workdir); -assert(app.entrypointDir.endsWith("/sdk_tests/std")); +assert(app.entrypointDir.endsWith("/sdk_tests/std") || app.entrypointDir.endsWith("\\sdk_tests\\std")); expect.equal(app.entrypointDir, root.entrypointDir); app.isTestEnvironment; // don't care if it's true or false, just that it compiles