Skip to content

Commit

Permalink
test(npm): Rename the package-lock project to project-with-lockfile
Browse files Browse the repository at this point in the history
Make the name consistent with similar projects for the other three node
package managers.

Signed-off-by: Frank Viernau <[email protected]>
fviernau committed Nov 15, 2024
1 parent dfaa896 commit 566b22f
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -68,9 +68,9 @@ class NpmFunTest : WordSpec({
patchActualResult(result.toYaml()) should matchExpectedResult(expectedResultFile, definitionFile)
}

"resolve package-lock dependencies correctly" {
val definitionFile = getAssetFile("projects/synthetic/npm/package-lock/package.json")
val expectedResultFile = getAssetFile("projects/synthetic/npm/package-lock-expected-output.yml")
"resolve dependencies for a project with lockfile correctly" {
val definitionFile = getAssetFile("projects/synthetic/npm/project-with-lockfile/package.json")
val expectedResultFile = getAssetFile("projects/synthetic/npm/project-with-lockfile-expected-output.yml")

val result = create("NPM").resolveSingleProject(definitionFile, resolveScopes = true)

Original file line number Diff line number Diff line change
@@ -160,7 +160,7 @@ class NpmDetectionTest : WordSpec({
filteredFiles.map { it.toRelativeString(projectDir) } shouldContainExactlyInAnyOrder listOf(
"npm/no-lockfile/package.json",
"npm/node-modules/package.json",
"npm/package-lock/package.json",
"npm/project-with-lockfile/package.json",
"npm/shrinkwrap/package.json",
"npm/babel/package.json",
"npm/version-urls/package.json",

0 comments on commit 566b22f

Please sign in to comment.