0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/test/tests.js
2013-09-27 16:36:10 +04:00

20 lines
552 B
JavaScript

var fs = require('fs');
var async = require('async');
var assert = require('assert');
var Server = require('./lib/server');
var readfile = require('fs').readFileSync;
var ex = module.exports;
var forks = process.forks = [];
process.server = new Server('http://localhost:55551/');
process.server2 = new Server('http://localhost:55552/');
ex['Startup:'] = require('./startup');
ex['Basic:'] = require('./basic');
ex['Mirror:'] = require('./mirror');
process.on('exit', function() {
if (forks[0]) forks[0].kill();
if (forks[1]) forks[1].kill();
});