src/applications/representative-search/mocks/feature-toggles/index.js
const generateFeatureToggles = (toggles = {}) => {
const { findARepresentativeEnableFrontend = false } = toggles;
return {
data: {
type: 'feature_toggles',
features: [
{
name: 'find_a_representative',
value: findARepresentativeEnableFrontend,
},
],
},
};
};
module.exports = { generateFeatureToggles };