Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

fix(faq): display right section for patient faq #88

Merged
merged 3 commits into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions jest.config-api.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
globalSetup: '<rootDir>jest/api-setup.js',
globalTeardown: '<rootDir>jest/api-teardown.js',
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
testMatch: ['**/*.spec.ts'],
moduleDirectories: ['<rootDir>', 'node_modules'],
globalSetup: "<rootDir>jest/api-setup.js",
globalTeardown: "<rootDir>jest/api-teardown.js",
testPathIgnorePatterns: ["<rootDir>/.next/", "<rootDir>/node_modules/"],
testMatch: ["**/*.spec.ts"],
moduleDirectories: ["<rootDir>", "node_modules"],
testTimeout: 30000,
};
9 changes: 4 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
testMatch: ['**/*.spec.ts'],
testPathIgnorePatterns: [
"<rootDir>/src/__tests__/api",
],
moduleDirectories: ['<rootDir>', 'node_modules'],
testMatch: ["**/*.spec.ts"],
testPathIgnorePatterns: ["<rootDir>/src/__tests__/api"],
moduleDirectories: ["<rootDir>", "node_modules"],
testTimeout: 30000,
};
3 changes: 2 additions & 1 deletion src/services/faq/faq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import accompaniment from "./patient/accompaniment";
import begin from "./patient/begin";
import children from "./patient/children";
import difficulty from "./patient/difficulty";
import eligibilityPatient from "./patient/eligibility";
import end from "./patient/end";
import information from "./patient/information";
import reimbursment from "./patient/reimbursment";
Expand Down Expand Up @@ -40,7 +41,7 @@ const items = [
{
key: "psychologue",
sections: [
{ faq: eligibility, title: "Éligibilité" },
{ faq: eligibilityPatient, title: "Éligibilité" },
{ faq: registration, title: "Candidature" },
{ faq: agreement, title: "Conventionnement avec l’Assurance Maladie" },
{
Expand Down