From d9229143ce7d5b150a5367b12196cc1291ef0f48 Mon Sep 17 00:00:00 2001 From: amtoine Date: Fri, 8 Dec 2023 09:48:16 +0100 Subject: [PATCH] sanitize path in windows test --- tests/sugar/git.nu | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/sugar/git.nu b/tests/sugar/git.nu index e040cbcb..e1139329 100644 --- a/tests/sugar/git.nu +++ b/tests/sugar/git.nu @@ -438,7 +438,13 @@ export module prompt { assert prompt $"($repo | path basename) \(_:($hash)\) " cd .. - assert prompt $"($repo | path dirname | simplify-path) " + # FIXME: use `path sanitize` from `nu-git-manager` + let expected_pwd = $repo + | path dirname + | str replace --regex '^.:' '' + | str replace --all '\' '/' + | simplify-path + assert prompt $"($expected_pwd) " clean $repo }