Skip to content

Commit c832669

Browse files
fix: windows build
1 parent 16e1d2b commit c832669

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/update/update_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ func TestApply(t *testing.T) {
2323
if err := Apply("invalidFile", ""); err != ErrNoUpdater {
2424
t.Fatal(err)
2525
}
26-
if err := Apply("not/existing/package.json", ""); !strings.Contains(err.Error(), "no such file or directory") {
26+
if err := Apply("not/existing/package.json", ""); !strings.Contains(err.Error(), "no such file or directory") &&
27+
!strings.Contains(err.Error(), "The system cannot find the path specified.") {
2728
t.Fatal(err)
2829
}
2930
}

0 commit comments

Comments
 (0)