department-of-veterans-affairs/vets-website

View on GitHub
src/applications/verify-your-enrollment/constants/mockData.js

Summary

Maintainability
B
4 hrs
Test Coverage
export const UPDATED_USER_MOCK_DATA = {
  'vye::UserInfo': {
    remEnt: '2854321', // 28(first 2 numbers) for months .54321 * 30 = res needs to be rounded
    certIssueDate: '2019-06-28T00:00:00.000Z',
    delDate: '2026-09-03T00:00:00.000Z',
    dateLastCertified: '2024-03-01',
    paymentAmt: '3989.36',
    indicator: 'B',
    latestAddress: {
      veteranName: 'wafi',
      address1: '322 26th Ave Apt 4',
      address2: null,
      address3: null,
      address4: null,
      address5: null,
      city: 'San Francisco',
      state: 'CA',
      zipCode: '94121',
      origin: null,
    },
    pendingDocuments: [
      {
        docType: '1990',
        queueDate: '2023-12-04T22:24:20.000Z',
      },
    ],
    pendingVerifications: [
      {
        awardId: 1,
        actBegin: '2024-03-01',
        actEnd: '2024-03-24',
        numberHours: 10,
        monthlyRate: 600.0,
        caseTrace: 'CASE 1b',
      },
      {
        awardId: 6,
        actBegin: '2024-03-25',
        actEnd: '2024-04-30',
        numberHours: 10,
        monthlyRate: 600.0,
        caseTrace: 'CASE 1b',
      },
      {
        awardId: 2,
        actBegin: '2024-03-25',
        actEnd: '2024-03-31',
        numberHours: 12,
        monthlyRate: 1400.0,
        caseTrace: 'CASE 7',
      },
      {
        awardId: 3,
        actBegin: '2024-02-05',
        actEnd: '2024-02-29',
        numberHours: 12,
        monthlyRate: 1400.0,
        caseTrace: 'CASE 7',
      },
    ],
    verifications: [
      {
        transactDate: '2020-06-01',
        actBegin: null,
        actEnd: '2020-05-31',
        numberHours: null,
        monthlyRate: null,
        paymentDate: '2020-06-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2020-05-15',
        actBegin: null,
        // "actBegin":'2020-04-01',
        actEnd: '2020-04-30',
        numberHours: 4,
        monthlyRate: null,
        paymentDate: '2020-05-15',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        // "actBegin":'2023-02-06',
        actBegin: '2020-04-06',
        actEnd: null,
        // "actEnd":'2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2019-02-06',
        actEnd: '2019-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2018-02-06',
        actEnd: '2018-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2017-02-06',
        actEnd: '2017-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2016-02-06',
        actEnd: '2016-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2015-02-06',
        actEnd: '2015-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2014-02-06',
        actEnd: '2014-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2013-02-06',
        actEnd: '2013-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2012-02-06',
        actEnd: '2012-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2011-02-06',
        actEnd: '2011-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2010-02-06',
        actEnd: '2010-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
    ],
  },
};

export const PAGINATION_USER_MOCK_DATA = {
  'vye::UserInfo': {
    suffix: 'CPA',
    fullName: 'Ben Simonis MD',
    addressLine2: 'Apt 11',
    addressLine3: 'Park Crossing',
    addressLine4: 'Leanneside',
    addressLine5: 'Montana',
    addressLine6: '03729',
    zip: '46786-3217',
    remEnt: '2854321', // 28(first 2 numbers) for months .54321 * 30 = res needs to be rounded
    certIssueDate: '2019-06-28T00:00:00.000Z',
    delDate: '2026-09-03T00:00:00.000Z',
    dateLastCertified: '2024-03-01',
    paymentAmt: '3989.36',
    indicator: 'B',

    pendingDocuments: [
      {
        docType: '1990',
        queueDate: '2023-12-04T22:24:20.000Z',
      },
    ],
    pendingVerifications: [
      {
        awardId: '00001',
        actBegin: '2024-03-01',
        actEnd: '2024-03-24',
        numberHours: 10,
        monthlyRate: 600.0,
        caseTrace: 'CASE 1b',
      },
      {
        awardId: '00002',
        actBegin: '2024-03-25',
        actEnd: '2024-03-31',
        numberHours: 12,
        monthlyRate: 1400.0,
        caseTrace: 'CASE 7',
      },
      {
        awardId: '00003',
        actBegin: '2024-02-05',
        actEnd: '2024-02-31',
        numberHours: 12,
        monthlyRate: 1400.0,
        caseTrace: 'CASE 7',
      },
    ],
    verifications: [
      {
        transactDate: '2023-03-01',
        actBegin: '2023-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2022-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2021-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2020-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2019-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2018-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2017-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2016-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2015-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2014-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2013-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2012-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2011-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
      {
        transactDate: '2023-03-01',
        actBegin: '2010-02-06',
        actEnd: '2023-02-28',
        numberHours: 6,
        monthlyRate: 800.0,
        paymentDate: '2023-03-01',
        caseTrace: 'CASE 1b',
      },
    ],
  },
};