19 lines
424 B
TypeScript
19 lines
424 B
TypeScript
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();
|
|
});
|
|
});
|
|
});
|