Skip to content

Commit 3f8d168

Browse files
committed
test(purl-types): fix incomplete assertion in legacy npm names test
Add missing .toBe(true) to assertion that validates npm legacy package names have at least one characteristic (builtin, mixed case, or illegal characters). Without this, the test would pass even if the assertion failed.
1 parent 98d46ba commit 3f8d168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/purl-types.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('PackageURL type-specific tests', () => {
6262
expect(
6363
isBuiltin || isMixedCased || containsIllegalCharacters,
6464
`assert for ${legacyName}`,
65-
)
65+
).toBe(true)
6666
}
6767
})
6868

0 commit comments

Comments
 (0)