From 6babe506606acea567ddb03e3f235512fd7fc9ee Mon Sep 17 00:00:00 2001 From: amtoine Date: Fri, 8 Dec 2023 09:43:32 +0100 Subject: [PATCH] add admin segment for windows test --- tests/sugar/git.nu | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/sugar/git.nu b/tests/sugar/git.nu index ae0f874d..e040cbcb 100644 --- a/tests/sugar/git.nu +++ b/tests/sugar/git.nu @@ -350,7 +350,14 @@ export module prompt { def "assert prompt" [expected: string] { let actual = get-left-prompt 10hr | ansi strip - assert equal $actual $expected + + let admin_segment = if $nu.os-info.name == "windows" { + "!!" + } else { + null + } + + assert equal $actual ($admin_segment | append $expected | compact | str join " ") } export def repo-revision [] {