Moved backend to a separate directory

This commit is contained in:
Sebastian Seedorf
2020-11-24 00:39:20 +01:00
parent f7d790818a
commit ef3af370fd
16 changed files with 9 additions and 17 deletions

View File

@@ -0,0 +1,18 @@
import healthRouter from '../../src/routes/healthcheck';
import * as request from 'supertest';
import * as express from 'express';
describe('backend:routes/healthcheck', () => {
it('should return 200', (done) => {
const app = express();
app.use(healthRouter);
request(app)
.get("/")
.set('Accept', 'application/json')
.expect(200)
.end((err, res) => {
if (err) throw err;
done();
});
});
});