Skip to content

Commit

Permalink
Add e2e tests for all endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawajs committed Jan 18, 2025
1 parent 99086bc commit 4372f05
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion src/nursery-nav-api/test/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,37 @@ describe('AppController (e2e)', () => {
return request(app.getHttpServer())
.get('/')
.expect(200)
.expect('Hello World!');
.expect('Status: running');
});

it('/institutions (GET)', () => {
return request(app.getHttpServer())
.get('/institutions')
.expect(200)
});

it('/institutions/details/{id} (GET)', () => {
return request(app.getHttpServer())
.get('/institutions/details/1')
.expect(200)
.expect('');
});

it('/cities (GET}', () => {
return request(app.getHttpServer())
.get('/cities')
.expect(200);
});

it('/locations (GET}', () => {
return request(app.getHttpServer())
.get('/locations')
.expect(200);
});

it('/institutions/autocomplete (GET)', () => {
return request(app.getHttpServer())
.get('/institutions/autocomplete?search=test')
.expect(200);
});
});

0 comments on commit 4372f05

Please sign in to comment.