Skip to content

Commit

Permalink
chore(sdk): fix node.test.w test on windows (#5035)
Browse files Browse the repository at this point in the history
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)*.
  • Loading branch information
MarkMcCulloh authored Nov 23, 2023
1 parent 87be4e1 commit 635fa4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tests/sdk_tests/std/node.test.w
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 635fa4b

Please sign in to comment.