Skip to content

Commit

Permalink
metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Aug 29, 2024
1 parent fc01721 commit 619a93b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build/npm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ func TestGenerateBuildInfoForNpm(t *testing.T) {
// Create npm project.
path, err := filepath.Abs(filepath.Join(".", "testdata"))
assert.NoError(t, err)
projectPath, cleanup := tests.CreateNpmTest(t, path, "project3", false, npmVersion)
defer cleanup()
projectPath := tests.CreateNpmTest(t, path, "project3", false, npmVersion)

// Install dependencies in the npm project.
npmArgs := []string{"--cache=" + filepath.Join(projectPath, "tmpcache")}
Expand Down Expand Up @@ -66,8 +65,7 @@ func TestFilterNpmArgsFlags(t *testing.T) {
// Create npm project.
path, err := filepath.Abs(filepath.Join(".", "testdata"))
assert.NoError(t, err)
projectPath, cleanup := tests.CreateNpmTest(t, path, "project3", false, npmVersion)
defer cleanup()
projectPath := tests.CreateNpmTest(t, path, "project3", false, npmVersion)

// Set arguments in npmArgs.
npmArgs := []string{"ls", "--package-lock-only"}
Expand Down

0 comments on commit 619a93b

Please sign in to comment.