mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
14 lines
300 B
JavaScript
14 lines
300 B
JavaScript
var assert = require('assert');
|
|
var 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();
|
|
}
|
|
});
|
|
};
|
|
|