Skip to content

Commit

Permalink
test: fix users e2e spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pmstss committed Sep 4, 2024
1 parent 46956e5 commit 283967f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/users.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { MikroOrmModule } from '@mikro-orm/nestjs';

describe('/users', () => {
const user = {
id: 2,
id: 6,
firstName: 'Karl',
lastName: 'Jablonski',
isActive: true
Expand Down Expand Up @@ -55,7 +55,7 @@ describe('/users', () => {
describe('GET /:id', () => {
it('should return an user by ID', async () => {
const res = await request(app.getHttpServer())
.get('/users/2')
.get('/users/6')
.expect(200);

expect(res).toMatchObject({
Expand All @@ -81,6 +81,6 @@ describe('/users', () => {
describe('DEL /:id', () => {
// eslint-disable-next-line jest/expect-expect
it('should remove an user by ID', () =>
request(app.getHttpServer()).delete('/users/2').expect(200));
request(app.getHttpServer()).delete('/users/6').expect(200));
});
});

0 comments on commit 283967f

Please sign in to comment.