Skip to content

Commit 7e57784

Browse files
committed
Remove unused imports and duplicate tests from edge-cases test
1 parent da3d89b commit 7e57784

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

test/registry/packages-edge-cases.test.mts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
parseSpdxExp,
1010
resolvePackageJsonDirname,
1111
resolvePackageJsonEntryExports,
12-
resolvePackageJsonPath,
1312
resolvePackageLicenses,
1413
} from '../../registry/dist/lib/packages.js'
1514

@@ -210,28 +209,6 @@ describe('packages module - edge cases and error handling', () => {
210209
})
211210
})
212211

213-
describe('resolvePackageJsonPath', () => {
214-
it('should return path if it ends with package.json', () => {
215-
const result = resolvePackageJsonPath('/path/to/package.json')
216-
expect(result).toBe('/path/to/package.json')
217-
})
218-
219-
it('should append package.json to directory path', () => {
220-
const result = resolvePackageJsonPath('/path/to/directory')
221-
expect(result).toContain('package.json')
222-
})
223-
224-
it('should handle root directory', () => {
225-
const result = resolvePackageJsonPath('/')
226-
expect(result).toContain('package.json')
227-
})
228-
229-
it('should handle relative paths', () => {
230-
const result = resolvePackageJsonPath('.')
231-
expect(result).toContain('package.json')
232-
})
233-
})
234-
235212
describe('resolvePackageJsonEntryExports', () => {
236213
it('should wrap string exports in dot notation', () => {
237214
const result = resolvePackageJsonEntryExports('./index.js')

0 commit comments

Comments
 (0)