Files
pnpm/test/api.ts
zkochan df05c83757 refactor(prune): move the overload of prune to a separate function
Divide the logic of prune into two functions: prune and prunePkgs.

PR #372
2016-09-27 00:02:10 +03:00

15 lines
659 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.install, 'function', 'exports installPkgDeps()')
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()
})