0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/test/tests.js

22 lines
569 B
JavaScript
Raw Normal View History

var fs = require('fs')
, async = require('async')
, assert = require('assert')
, Server = require('./lib/server')
, readfile = require('fs').readFileSync
, ex = module.exports
2013-09-27 01:16:46 -05:00
var forks = process.forks = []
process.server = new Server('http://localhost:55551/')
process.server2 = new Server('http://localhost:55552/')
2013-09-27 01:16:46 -05:00
ex['Startup:'] = require('./startup')
ex['Basic:'] = require('./basic')
ex['Mirror:'] = require('./mirror')
ex['Race:'] = require('./race')
2013-09-27 03:56:44 -05:00
2013-09-27 01:16:46 -05:00
process.on('exit', function() {
if (forks[0]) forks[0].kill()
if (forks[1]) forks[1].kill()
})
2013-09-27 01:16:46 -05:00