Skip to content

Commit

Permalink
add admin segment for windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Dec 8, 2023
1 parent 2057d29 commit 6babe50
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/sugar/git.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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 [] {
Expand Down

0 comments on commit 6babe50

Please sign in to comment.