src/models/terrorismEngaged.js

Summary

Maintainability
A
0 mins
Test Coverage
import { DEFAULT_LATEST } from 'constants/dateLimits'

const terrorismEngaged = {
  Dates: (value, attributes, attributeName, options = {}) => {
    const { applicantBirthdate } = options

    return {
      presence: true,
      daterange: { earliest: applicantBirthdate, latest: DEFAULT_LATEST },
    }
  },
  Reasons: { presence: true, hasValue: true },
}

export default terrorismEngaged