Skip to content

Commit

Permalink
testXrayAuditJas fix
Browse files Browse the repository at this point in the history
  • Loading branch information
orto17 committed Jun 22, 2023
1 parent cb3a93e commit 5fca540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xray_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ func testXrayAuditJas(t *testing.T, format string, project string) string {
initXrayTest(t, commands.GraphScanMinXrayVersion)
tempDirPath, createTempDirCallback := coretests.CreateTempDirWithCallbackAndAssert(t)
defer createTempDirCallback()
jasProjectPath := filepath.Join(filepath.FromSlash(tests.GetTestResourcesPath()), "xray", "jas")
projectPath := filepath.Join(filepath.FromSlash(tests.GetTestResourcesPath()), "xray", project)
// Copy the project from the testdata to a temp dir
assert.NoError(t, fileutils.CopyDir(jasProjectPath, tempDirPath, true, nil))
assert.NoError(t, fileutils.CopyDir(projectPath, tempDirPath, true, nil))
prevWd := changeWD(t, tempDirPath)
defer clientTestUtils.ChangeDirAndAssert(t, prevWd)
// Run npm install before executing jfrog xr npm-audit
Expand Down

0 comments on commit 5fca540

Please sign in to comment.