Files
pnpm/test/api.ts
zkochan 5f07768d2d feat: semver aware caching
Invalidate caching in semver aware way.

Remove caching into filesystem.

Rel #568, Close #580
2017-02-02 22:11:03 +02:00

15 lines
660 B
TypeScript

import test = require('tape')
import * as pnpm from '../src'
test('API', t => {
t.equal(typeof pnpm.install, 'function', 'exports install()')
t.equal(typeof pnpm.installPkgs, 'function', 'exports installPkgs()')
t.equal(typeof pnpm.uninstall, 'function', 'exports uninstall()')
t.equal(typeof pnpm.linkFromGlobal, 'function', 'exports linkFromGlobal()')
t.equal(typeof pnpm.linkFromRelative, 'function', 'exports linkFromRelative()')
t.equal(typeof pnpm.linkToGlobal, 'function', 'exports linkToGlobal()')
t.equal(typeof pnpm.prune, 'function', 'exports prune()')
t.equal(typeof pnpm.prunePkgs, 'function', 'exports prunePkgs()')
t.end()
})