text: import IdentificationBirthPlaceValidator, {
    validateIdentificationBirthPlace,
  } from './identificationbirthplace'
  
  describe('The IdentificationBirthPlace class', () => {
    it('should validate a birth place', () => {
      const testData = {
        Location: {
          city: 'Boston',
          state: 'MA',
          county: 'Boston',
          country: 'United States',
        },
      }
  
      expect(new IdentificationBirthPlaceValidator(testData).isValid()).toBe(true)
    })
  
    it('should validate a foreign birth place', () => {
      const testData = {
        Location: {
          city: 'Toronto',
          country: {
            value: ['Canada'],
          },
        },
      }
  
      expect(new IdentificationBirthPlaceValidator(testData).isValid()).toBe(true)
    })
  
    it('should fail an invalid birth place', () => {
      const testData = {
        Location: {
          state: 'MA',
          country: '',
        },
      }
  
      expect(new IdentificationBirthPlaceValidator(testData).isValid()).toBe(false)
    })
  })
  
  describe('The validateIdentificationBirthPlace function', () => {
    it('should validate a birth place', () => {
      const testData = {
        Location: {
          city: 'Boston',
          state: 'MA',
          county: 'Boston',
          country: 'United States',
        },
      }
  
      expect(validateIdentificationBirthPlace(testData)).toBe(true)
    })
  
    it('should validate a foreign birth place', () => {
      const testData = {
        Location: {
          city: 'Toronto',
          country: {
            value: ['Canada'],
          },
        },
      }
  
      expect(validateIdentificationBirthPlace(testData)).toBe(true)
    })
  
    it('should fail an invalid birth place', () => {
      const testData = {
        Location: {
          state: 'MA',
          country: '',
        },
      }
  
      expect(validateIdentificationBirthPlace(testData)).toBe(false)
    })
  })
  