department-of-veterans-affairs/vets-website

View on GitHub
src/applications/representative-search/mocks/feature-toggles/index.js

Summary

Maintainability
A
1 hr
Test Coverage
const generateFeatureToggles = (toggles = {}) => {
  const { findARepresentativeEnableFrontend = false } = toggles;

  return {
    data: {
      type: 'feature_toggles',
      features: [
        {
          name: 'find_a_representative',
          value: findARepresentativeEnableFrontend,
        },
      ],
    },
  };
};

module.exports = { generateFeatureToggles };