mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-26 19:12:12 -04:00
17 lines
425 B
TypeScript
17 lines
425 B
TypeScript
import { pkgSnapshotToResolution } from 'pnpm-shrinkwrap'
|
|
import test = require('tape')
|
|
|
|
test('pkgSnapshotToResolution()', (t) => {
|
|
t.deepEqual(pkgSnapshotToResolution('/foo/1.0.0', {
|
|
resolution: {
|
|
integrity: 'AAAA',
|
|
},
|
|
}, 'https://registry.npmjs.org/'), {
|
|
integrity: 'AAAA',
|
|
registry: 'https://registry.npmjs.org/',
|
|
tarball: 'https://registry.npmjs.org/foo/-/foo-1.0.0.tgz',
|
|
})
|
|
|
|
t.end()
|
|
})
|