src/applications/mhv-medications/mocks/api/feature-toggles/index.js
const generateFeatureToggles = (toggles = {}) => {
const {
mhvLandingPagePersonalization = true,
mhvMedicationsToVaGovRelease = true,
mhvMedicationsDisplayRefillContent = true,
mhvMedicationsDisplayDocumentationContent = true,
mhvMedicationsDisplayFilter = true,
mhvMedicationsDisplayGrouping = true,
} = toggles;
return {
data: {
type: 'feature_toggles',
features: [
{
name: 'mhv_landing_page_personalization',
value: mhvLandingPagePersonalization,
},
{
name: 'mhv_medications_to_va_gov_release',
value: mhvMedicationsToVaGovRelease,
},
{
name: 'mhv_medications_display_refill_content',
value: mhvMedicationsDisplayRefillContent,
},
{
name: 'mhv_medications_display_documentation_content',
value: mhvMedicationsDisplayDocumentationContent,
},
{
name: 'mhv_medications_display_filter',
value: mhvMedicationsDisplayFilter,
},
{
name: 'mhv_medications_display_grouping',
value: mhvMedicationsDisplayGrouping,
},
],
},
};
};
module.exports = { generateFeatureToggles };