department-of-veterans-affairs/vets-website

View on GitHub
src/applications/_mock-form-ae-design-patterns/mocks/endpoints/coe/status.js

Summary

Maintainability
A
0 mins
Test Coverage
const generateCoeEligibleResponse = (referenceNumber = '17923279') => ({
  data: {
    attributes: {
      determinationDate: '2022-06-01T00:00:00.00Z',
      referenceNumber,
      status: 'ELIGIBLE',
    },
  },
});

const generateCoeEmptyResponse = () => ({
  data: {
    attributes: {},
  },
});

module.exports = {
  generateCoeEligibleResponse,
  generateCoeEmptyResponse,
};