Skip to content

Commit 54397b6

Browse files
author
hirsch88
committed
Test api version
1 parent 4069d50 commit 54397b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/api/info.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Application } from 'express';
22
import * as request from 'supertest';
33
import { bootstrapApp } from '../utils/app';
4+
import { env } from '../../../src/core/env';
45

56
describe('/api', () => {
67

@@ -13,7 +14,7 @@ describe('/api', () => {
1314
.expect('Content-Type', /json/)
1415
.expect(200);
1516

16-
console.log(response);
17+
expect(response.body.version).toBe(env.app.version);
1718
done();
1819
});
1920

0 commit comments

Comments
 (0)