Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
farnoux committed Nov 27, 2024
1 parent 5c29be4 commit a43809d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/test/fiches/fiche-action-update.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ describe('FichesActionUpdateService', () => {
});
});

it('should return 400 if the body is empty', async () => {
test('should return 400 if the body is empty', async () => {
const data = {};
const response = await putRequest(data);

expect(response.status).toBe(400);
expect(response.body.message[0]).toMatch(/cannot be empty/);
});

it('should update fiche action fields', async () => {
test('should update fiche action fields', async () => {
const data: UpdateFicheActionRequestClass = {
collectiviteId: 1,
titre: 'Construire des pistes cyclables',
Expand Down Expand Up @@ -217,7 +217,7 @@ describe('FichesActionUpdateService', () => {
tempsDeMiseEnOeuvre: 1,
participationCitoyenne:
'La participation citoyenne a été approuvée en réunion plénière',
participationCitoyenneType: 'Information',
participationCitoyenneType: 'information',
restreint: false,
};

Expand Down

0 comments on commit a43809d

Please sign in to comment.