Skip to content

Commit

Permalink
Update npm version requested for test (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
brayanhenao authored Aug 31, 2023
1 parent bbc0423 commit 9e10528
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nodejs/integration/npm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func testNPM(platform switchblade.Platform, fixtures string) func(*testing.T, sp
Expect(json.NewDecoder(file).Decode(&pkg)).To(Succeed())
Expect(file.Close()).To(Succeed())

pkg["engines"] = map[string]string{"npm": "^7"}
pkg["engines"] = map[string]string{"npm": "^8"}
content, err := json.Marshal(pkg)
Expect(err).NotTo(HaveOccurred())
Expect(os.WriteFile(filepath.Join(source, "package.json"), content, 0600)).To(Succeed())
Expand All @@ -89,8 +89,8 @@ func testNPM(platform switchblade.Platform, fixtures string) func(*testing.T, sp
Eventually(deployment).Should(Serve("Hello, World!"))

Expect(logs.String()).To(SatisfyAll(
ContainSubstring("engines.npm (package.json): ^7"),
ContainSubstring("Downloading and installing npm ^7"),
ContainSubstring("engines.npm (package.json): ^8"),
ContainSubstring("Downloading and installing npm ^8"),
))
})
})
Expand Down

0 comments on commit 9e10528

Please sign in to comment.