Skip to content

Commit

Permalink
fix: windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Apr 1, 2020
1 parent 16e1d2b commit c832669
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/update/update_test.go
Expand Up @@ -23,7 +23,8 @@ func TestApply(t *testing.T) {
if err := Apply("invalidFile", ""); err != ErrNoUpdater {
t.Fatal(err)
}
if err := Apply("not/existing/package.json", ""); !strings.Contains(err.Error(), "no such file or directory") {
if err := Apply("not/existing/package.json", ""); !strings.Contains(err.Error(), "no such file or directory") &&
!strings.Contains(err.Error(), "The system cannot find the path specified.") {
t.Fatal(err)
}
}

0 comments on commit c832669

Please sign in to comment.