We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 142cc0a commit 0d3e88fCopy full SHA for 0d3e88f
test/e2e/user.e2e.spec.ts
@@ -42,20 +42,11 @@ describe('UserController (e2e)', () => {
42
expect(res.status).toBe(HttpStatus.OK);
43
expect(res.type).toBe('application/json');
44
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
54
- firstName: '재혁',
55
- lastName: '김',
56
57
58
- ]);
+ expect(body).toHaveLength(2);
+ expect(body[0].firstName).toBe('JaeHyeok');
+ expect(body[0].lastName).toBe('Kim');
+ expect(body[1].firstName).toBe('재혁');
+ expect(body[1].lastName).toBe('김');
59
});
60
61
0 commit comments