update
This commit is contained in:
@@ -23,8 +23,21 @@ describe('AppController (e2e)', () => {
|
||||
.expect('Hello World!');
|
||||
});
|
||||
|
||||
it('/me (GET) requires a session', () => {
|
||||
return request(app.getHttpServer()).get('/me').expect(401);
|
||||
it('/health (GET)', () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/health')
|
||||
.expect(200)
|
||||
.expect({ status: 'ok' });
|
||||
});
|
||||
|
||||
it('/ready (GET) reports the database and Redis', async () => {
|
||||
const response = await request(app.getHttpServer())
|
||||
.get('/ready')
|
||||
.expect(200);
|
||||
expect(response.body.info).toMatchObject({
|
||||
database: { status: 'up' },
|
||||
redis: { status: 'up' },
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
Reference in New Issue
Block a user