Skip to content

Commit

Permalink
refactor: Découple les fixtures pour le formulaire des objets métier
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 committed Nov 20, 2023
1 parent b3f338d commit af16ad4
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Domaines } from '~/server/cms/domain/offreDeStage.type';

import { OffreDeStageDeposee } from './StageDeposerOffre';

export const aFormulaireEtapeEntreprise = (): OffreDeStageDeposee.Entreprise => {
export const aFormulaireEtapeEntreprise = () => {
return {
descriptionEmployeur: 'test description',
emailEmployeur: '[email protected]',
Expand All @@ -12,18 +10,18 @@ export const aFormulaireEtapeEntreprise = (): OffreDeStageDeposee.Entreprise =>
};
};

export const aFormulaireEtapeStage = (): OffreDeStageDeposee.Stage => {
export const aFormulaireEtapeStage = () => {
return {
dateDeDebutMax: '2123-02-20',
dateDeDebutMin: '2123-01-20',
descriptionOffre: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Auctor eu augue ut lectus arcu bibendum. Curabitur gravida arcu ac tortor dignissim convallis aenean. Adipiscing commodo elit at imperdiet. Ipsum a arcu cursus vitae congue. Sed euismod nisi porta lorem. Facilisis gravida neque convallis a cras semper auctor neque vitae. Ante in nibh mauris cursus. In iaculis nunc sed augue lacus. Pellentesque eu tincidunt tortor aliquam nulla facilisi cras fermentum.',
domaineStage: 'achats' as Domaines,
domaineStage: Domaines.ACHAT,
dureeStage: '30',
isDateDeDebutPrecise: 'true',
isDateDeDebutPrecise: 'true' as const,
lienCandidature: '[email protected]',
nomOffre: 'Nom Offre',
remunerationStage: '1',
teletravail: 'true',
teletravail: 'true' as const,
};
};

Expand Down

0 comments on commit af16ad4

Please sign in to comment.