Skip to content

Commit

Permalink
fix: test and snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlr committed Jul 1, 2024
1 parent 5e53674 commit 67a4a08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/tests/unit/deca.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ describe("IMPORT DECA from API", () => {
const periods2 = buildPeriodsToFetch(new Date("2024-01-01"), new Date("2024-03-01"));
assert.deepEqual(periods2.length, NB_JOURS_MAX_PERIODE_FETCH);
assert.deepEqual(periods2[0], { dateDebut: "2024-01-01", dateFin: "2024-01-02" });
assert.deepEqual(periods2[NB_JOURS_MAX_PERIODE_FETCH], { dateDebut: "2024-01-30", dateFin: "2024-01-31" });
assert.deepEqual(periods2[NB_JOURS_MAX_PERIODE_FETCH - 1], { dateDebut: "2024-01-30", dateFin: "2024-01-31" });
});

// buildDecaContrat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ exports[`zodToMongoSchema > should convert deca schema 1`] = `
"description": "Le code postal de l'adresse",
},
"numero": {
"bsonType": "number",
"bsonType": [
"number",
"null",
],
"description": "Le numéro de l'adresse",
},
"voie": {
Expand All @@ -76,7 +79,10 @@ exports[`zodToMongoSchema > should convert deca schema 1`] = `
"description": "Le département de naissance de l'alternant",
},
"derniere_classe": {
"bsonType": "string",
"bsonType": [
"string",
"null",
],
"description": "La dernière classe de l'apprenant",
},
"handicap": {
Expand All @@ -96,7 +102,10 @@ exports[`zodToMongoSchema > should convert deca schema 1`] = `
"description": "Le prenom de l'alternant",
},
"sexe": {
"bsonType": "string",
"bsonType": [
"string",
"null",
],
"description": "Le sexe de l'alternant",
},
"telephone": {
Expand Down Expand Up @@ -287,7 +296,6 @@ exports[`zodToMongoSchema > should convert deca schema 1`] = `
"alternant",
"formation",
"employeur",
"updated_at",
],
}
`;
Expand Down

0 comments on commit 67a4a08

Please sign in to comment.