@infect/rda-service
Version:
Microservice Framework for RDA
20 lines (14 loc) • 452 B
JavaScript
import {Server, Controller} from '../index.js';
import section, { SpecReporter } from 'section-tests';
section('Server', (section) => {
section.test('Create instance', async() => {
new Server();
});
section.test('Create listen & close', async() => {
const server = new Server();
section.info('listen');
await server.listen(6380);
section.info('close');
await server.close();
});
});