Skip to content

Commit 0d3e88f

Browse files
committed
test: 유저 E2E 테스트 수정
1 parent 142cc0a commit 0d3e88f

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

test/e2e/user.e2e.spec.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,11 @@ describe('UserController (e2e)', () => {
4242
expect(res.status).toBe(HttpStatus.OK);
4343
expect(res.type).toBe('application/json');
4444
const { body } = res;
45-
expect(body).toStrictEqual([
46-
{
47-
id: expect.any(Number),
48-
firstName: 'JaeHyeok',
49-
lastName: 'Kim',
50-
isActive: true,
51-
},
52-
{
53-
id: expect.any(Number),
54-
firstName: '재혁',
55-
lastName: '김',
56-
isActive: true,
57-
},
58-
]);
45+
expect(body).toHaveLength(2);
46+
expect(body[0].firstName).toBe('JaeHyeok');
47+
expect(body[0].lastName).toBe('Kim');
48+
expect(body[1].firstName).toBe('재혁');
49+
expect(body[1].lastName).toBe('김');
5950
});
6051
});
6152

0 commit comments

Comments
 (0)