Skip to content

Commit

Permalink
feat(stages): ajout des tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juliebrunetto83 committed Sep 29, 2023
1 parent e47ace0 commit 30e4c88
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 519 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export namespace Hellowork {
function?: string
seodomain?: _Domaine
category?: string
education?: string
salary?: string
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export class Convertir {

return {
// TODO (BRUJ 29-09-2023): changer dateDeDebutMax/Min
dateDeDebutMax: "",
dateDeDebutMin: "",
dateDeDebutMax: undefined,
dateDeDebutMin: undefined,
description: offreDeStage.description,
domaines: [{ nom: this.traduireDomaine(offreDeStage.seodomain) }],
employeur: {
Expand Down Expand Up @@ -110,8 +110,8 @@ export class Convertir {
ville: offreDeStage.city,
codePostal: offreDeStage.postalcode,
pays: this.pays.versFormatISOAlpha2(offreDeStage.country),
latitude: Number(offreDeStage.geoloc.split(",")[0]),
longitude: Number(offreDeStage.geoloc.split(",")[1]),
latitude: offreDeStage.geoloc && Number(offreDeStage.geoloc.split(",")[0]),
longitude: offreDeStage.geoloc && Number(offreDeStage.geoloc?.split(",")[1]),
};
}
}
Loading

0 comments on commit 30e4c88

Please sign in to comment.