mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-27 11:31:45 -04:00
17 lines
443 B
TypeScript
17 lines
443 B
TypeScript
import { pkgSnapshotToResolution } from '@pnpm/lockfile-utils'
|
|
import test = require('tape')
|
|
|
|
test('pkgSnapshotToResolution()', (t) => {
|
|
t.deepEqual(pkgSnapshotToResolution('/foo/1.0.0', {
|
|
resolution: {
|
|
integrity: 'AAAA',
|
|
},
|
|
}, { default: 'https://registry.npmjs.org/' }), {
|
|
integrity: 'AAAA',
|
|
registry: 'https://registry.npmjs.org/',
|
|
tarball: 'https://registry.npmjs.org/foo/-/foo-1.0.0.tgz',
|
|
})
|
|
|
|
t.end()
|
|
})
|