test(postpublish): initial scenario

This commit is contained in:
Christoph Witzko
2015-02-05 01:04:52 +01:00
parent 7380d586ee
commit 3799ad0cb6
3 changed files with 60 additions and 2 deletions
+2 -2
View File
@@ -7,10 +7,10 @@ var efh = require('error-first-handler')
var defaults = require('lodash.defaults')
var uid = require('nano-uid')()
module.exports = function (pkg) {
module.exports = function (input) {
var cb = Array.prototype.pop.call(arguments)
uid.generate(5, efh(cb)(function (id) {
var pkg = defaults((typeof pkg === 'object' ? pkg : {}), {
var pkg = defaults((typeof input === 'object' ? input : {}), {
name: id,
version: '0.0.0',
devDependencies: {