Skip to content

Commit d59d060

Browse files
committed
test: consolidate duplicate case
1 parent 33b8be3 commit d59d060

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/player-test.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -417,19 +417,6 @@ describe('Integration Tests', () => {
417417
expect(response.body.errors).toBeDefined();
418418
expect(hasFieldError(response.body.errors, 'squadNumber')).toBe(true);
419419
});
420-
it('Request PUT /players/{id} squadNumber >99 → Response status 400 Bad Request', async () => {
421-
// Arrange
422-
const id = playerStub.new.id;
423-
const body = { id, firstName: 'John', lastName: 'Doe', squadNumber: 150, position: 'Forward' };
424-
// Act
425-
const response = await request(app)
426-
.put(`${path}/${id}`)
427-
.send(body);
428-
// Assert
429-
expect(response.status).toBe(400);
430-
expect(response.body.errors).toBeDefined();
431-
expect(hasFieldError(response.body.errors, 'squadNumber')).toBe(true);
432-
});
433420
it('Request PUT /players/{id} id missing → Response status 400 Bad Request', async () => {
434421
// Arrange
435422
const id = 1;

0 commit comments

Comments
 (0)