mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 23:45:29 -05:00
13 lines
293 B
JavaScript
13 lines
293 B
JavaScript
var assert = require('assert')
|
|
, ex = module.exports
|
|
|
|
ex['trying to fetch non-existent package'] = function(cb) {
|
|
var f = fork('../bin/sinopia', ['-c', './config/log-1.yaml'], {silent: true})
|
|
f.on('message', function(msg) {
|
|
if ('sinopia_started' in msg) {
|
|
f.kill()
|
|
cb()
|
|
}
|
|
})
|
|
}
|
|
|