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

28 lines
725 B
JavaScript
Raw Normal View History

var fs = require('fs')
, async = require('async')
, assert = require('assert')
, Server = require('./lib/server')
, readfile = require('fs').readFileSync
, express = require('express')
, 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/')
process.express = express()
process.express.listen(55550)
2013-09-27 01:16:46 -05:00
ex['Startup:'] = require('./startup')
ex['Basic:'] = require('./basic')
ex['Mirror:'] = require('./mirror')
ex['Race:'] = require('./race')
ex['Tags:'] = require('./tags')
ex['GH29:'] = require('./gh29')
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