From 283967f16aa3b62666ae397055432bea2f629902 Mon Sep 17 00:00:00 2001 From: Viachaslau Tyshkavets Date: Wed, 4 Sep 2024 10:51:30 +0400 Subject: [PATCH] test: fix users e2e spec --- test/e2e/users.e2e-spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/users.e2e-spec.ts b/test/e2e/users.e2e-spec.ts index f121dbb..df3b8d5 100644 --- a/test/e2e/users.e2e-spec.ts +++ b/test/e2e/users.e2e-spec.ts @@ -8,7 +8,7 @@ import { MikroOrmModule } from '@mikro-orm/nestjs'; describe('/users', () => { const user = { - id: 2, + id: 6, firstName: 'Karl', lastName: 'Jablonski', isActive: true @@ -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({ @@ -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)); }); });