-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
886cf14
commit e19a58e
Showing
12 changed files
with
166 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 1 addition & 20 deletions
21
packages/code-du-travail-frontend/src/api/modules/modeles/__tests__/service.es.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
/** @jest-environment node */ | ||
|
||
import { | ||
getAllModeles, | ||
getByIdsModeles, | ||
getBySlugModeles, | ||
getBySlugsModeles, | ||
} from "../service"; | ||
import { getAllModeles, getByIdsModeles } from "../service"; | ||
|
||
describe("Modeles", () => { | ||
it("getAllModeles", async () => { | ||
const result = await getAllModeles(); | ||
expect(result).toMatchSnapshot(); | ||
}); | ||
it("getBySlugsModeles", async () => { | ||
const result = await getBySlugsModeles([ | ||
"demande-de-rendez-vous-en-vue-dune-rupture-conventionnelle", | ||
]); | ||
expect(result).toMatchSnapshot(); | ||
}); | ||
|
||
it("getByIdsModeles", async () => { | ||
const result = await getByIdsModeles(["a712ecb976"]); | ||
expect(result).toMatchSnapshot(); | ||
}); | ||
|
||
it("getBySlugModeles", async () => { | ||
const result = await getBySlugModeles( | ||
"demande-de-rendez-vous-en-vue-dune-rupture-conventionnelle" | ||
); | ||
expect(result).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ export const fetchLegalArticle = async ( | |
{ term: { isPublished: true } }, | ||
], | ||
}, | ||
}, | ||
size: 1, | ||
} | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.