department-of-veterans-affairs/vets-website

View on GitHub
src/applications/vaos/referral-appointments/utils/referrals.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createReferral has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const createReferral = (startDate, uuid) => {
  const [year, month, day] = startDate.split('-');
  const relativeDate = new Date(year, month - 1, day);

  const mydFormat = 'yyyy-MM-dd';
Severity: Minor
Found in src/applications/vaos/referral-appointments/utils/referrals.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status