From 435c14d00bc748225bc2b8c4b9558656b44e7fcf Mon Sep 17 00:00:00 2001 From: sarao Date: Mon, 15 May 2023 17:05:22 +0300 Subject: [PATCH] npm code refactor --- npm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm_test.go b/npm_test.go index 67210f7f3..8d61a1f10 100644 --- a/npm_test.go +++ b/npm_test.go @@ -384,7 +384,7 @@ func TestNpmPublishDetailedSummary(t *testing.T) { if npmVersion.Compare("7.0.0") > 0 { tarballName = "jfrog-cli-tests-1.0.0.tgz" } - expectedSourcePath := npmProjectPath + "/" + tarballName + expectedSourcePath := filepath.Join(npmProjectPath, tarballName) expectedTargetPath := serverDetails.ArtifactoryUrl + tests.NpmRepo + "/jfrog-cli-tests/-/" + tarballName assert.Equal(t, expectedSourcePath, files[0].SourcePath, "Summary validation failed - unmatched SourcePath.") assert.Equal(t, expectedTargetPath, files[0].RtUrl+files[0].TargetPath, "Summary validation failed - unmatched TargetPath.")