Skip to content

Commit d0168b3

Browse files
committed
test: update nushell hook access assertion
1 parent 6bd187c commit d0168b3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

internal/shell/nushell_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@ func TestNushellActivateWithPidCheck(t *testing.T) {
194194
t.Error("SelfPath was not properly replaced")
195195
}
196196

197-
// Verify that get -i is used (not get -o)
198-
if strings.Contains(contentStr, "get -o hooks.pre_prompt") {
199-
t.Error("Found incorrect 'get -o', should be 'get -i'")
197+
// Verify that get -o is used (not get -i)
198+
if strings.Contains(contentStr, "get -i hooks.pre_prompt") {
199+
t.Error("Found outdated 'get -i', should be 'get -o'")
200200
}
201-
if !strings.Contains(contentStr, "get -i hooks.pre_prompt") {
202-
t.Error("Missing correct 'get -i hooks.pre_prompt'")
201+
if !strings.Contains(contentStr, "get -o hooks.pre_prompt") {
202+
t.Error("Missing correct 'get -o hooks.pre_prompt'")
203203
}
204204

205205
// Check for PID check block presence/absence

0 commit comments

Comments
 (0)