Updated mocha & nyc, resolved all lint issues in tests/

This commit is contained in:
2022-08-20 13:05:24 +02:00
parent 9708a6cff9
commit a6d808daa6
18 changed files with 996 additions and 1207 deletions

View File

@@ -2,14 +2,12 @@
const net = require("net");
const server = require("../../src/webserver/server");
xdescribe('As a developer I want the server to start', () => {
beforeEach(() =>
this.server = require('src/webserver/server'));
it('should listen on port 31400', (done) => {
net.createConnection(31400, done);
describe("As a developer I want the server to start", () => {
after(() => {
server.close();
});
afterEach(() =>
this.server.close());
it("should listen on port 31400", done => {
net.createConnection(31400, done);
});
});