Files
pnpm/test/api.ts
zkochan de00178ca3 refactor: link API
BREAKING CHANGE:

Link API functions changed
2017-02-18 20:32:34 +02:00

15 lines
636 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.link, 'function', 'exports link()')
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()
})