Skip to content

Commit

Permalink
updated test suitcases to stable versions and updated tests accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Aug 1, 2023
1 parent 2eec2f5 commit c629dbb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions build/testdata/yarn/v2/project/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "build-info-go-tests",
"packageManager": "[email protected]",
"version": "v1.0.0",
"description": "test package",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion build/testdata/yarn/v2/project/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!

__metadata:
version: 6
version: 5
cacheKey: 8

"build-info-go-tests@workspace:.":
Expand Down
5 changes: 0 additions & 5 deletions build/utils/yarn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ func checkGetYarnDependencies(t *testing.T, versionDir string, expectedLocators
Dependencies: map[string]string{"react": "18.2.0", "xml": "1.0.1"},
DevDependencies: map[string]string{"json": "9.0.6"},
}
if versionDir == "v1" {
version, err := GetVersion(executablePath, projectSrcPath)
assert.NoError(t, err, "error has occurred when verifying project's version")
assert.Equal(t, "1.22.19", version, "tests of yarn v1 are not running on v1 project")
}
dependenciesMap, root, err := GetYarnDependencies(executablePath, projectSrcPath, &pacInfo, &utils.NullLog{})

// general checks
Expand Down

0 comments on commit c629dbb

Please sign in to comment.