department-of-veterans-affairs/vets-website

View on GitHub
src/applications/avs/api/mocks/feature-toggles/index.js

Summary

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

  return {
    data: {
      type: 'feature_toggles',
      features: [
        {
          name: 'avs_enabled',
          value: avsEnabled,
        },
      ],
    },
  };
};

module.exports = { generateFeatureToggles };