0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00
verdaccio/test/run.js
2013-09-25 12:10:12 +04:00

17 lines
352 B
JavaScript
Executable file

#!/usr/local/bin/node --harmony
var galaxy = require('galaxy');
var Auth = galaxy.star(require('./lib/auth'));
var sleep = galaxy.star(function(ms, cb) {
setTimeout(cb, ms);
});
process.argv = ['node', 'sinopia', '-c', './config.yaml'];
require('../bin/sinopia');
galaxy.unstar(function*() {
sleep(1000);
yield Auth.auth('test', 'test');
})();