@infect/rda
Version:
RDA public API
36 lines (24 loc) • 795 B
JavaScript
import Service from '../index.js';
import section from 'section-tests';
import assert from 'assert';
import log from 'ee-log';
import ServiceManager from '@infect/rda-service-manager';
const host = 'http://localhost:8000';
section('RDA Coordinator Service', (section) => {
let sm;
section.setup(async() => {
sm = new ServiceManager({
args: '--dev --log-level=error+ --log-module=*'.split(' ')
});
await sm.startServices('@infect/rda-service-registry');
});
section.test('Start & stop service', async() => {
const service = new Service();
await service.load();
await section.wait(200);
await service.end();
});
section.destroy(async() => {
await sm.stopServices();
});
});