text: import { availableBucketRegions, getRegionInfo, isSupportedBucketLocation, locationTypes } from 'src/components/region-common'
  
  
  const us = {
    label: 'US multi-regional (default)',
    locationType: 'multi-region',
    value: 'US'
  }
  
  const usCentral = {
    label: 'us-central1 (Iowa)',
    locationType: 'region',
    value: 'US-CENTRAL1'
  }
  
  const montreal = {
    label: 'northamerica-northeast1 (Montreal)',
    locationType: 'region',
    value: 'NORTHAMERICA-NORTHEAST1'
  }
  
  const mockAvailableBucketRegions = [us, usCentral, montreal]
  
  describe('getRegionInfo', () => {
    it('gets a { flag: ..., countryName: ... } object representing a google locationType/location input.', () => {
      expect(getRegionInfo('US', locationTypes.multiRegion))
        .toStrictEqual({ flag: '🇺🇸', regionDescription: 'US (multi-region)', computeZone: 'US-CENTRAL1-A', computeRegion: 'US-CENTRAL1' })
    })
    it('gets a object with UNKNOWNS when region is bad.', () => {
      expect(getRegionInfo('BAD_REGION', locationTypes.multiRegion))
        .toStrictEqual({ flag: '❓', regionDescription: 'BAD_REGION (multi-region)', computeZone: 'UNKNOWN', computeRegion: 'UNKNOWN' })
    })
    it('gets a object with UNKNOWNS when locationType is bad is bad.', () => {
      expect(getRegionInfo('BAD_REGION', 'BAD_LOCATION_TYPE'))
        .toStrictEqual({ flag: '❓', regionDescription: 'bad_region', computeZone: 'UNKNOWN', computeRegion: 'UNKNOWN' })
    })
  })
  
  describe('availableBucketRegions', () => {
    it('For current phased release of regionality only supporting US, US-CENTRAL1, NORTHAMERICA-NORTHEAST1 buckets.', () => {
      expect(availableBucketRegions).toStrictEqual(mockAvailableBucketRegions)
    })
  })
  
  describe('isSupportedBucketLocation', () => {
    it('Montreal is supported as a bucket location', () => {
      expect(isSupportedBucketLocation(montreal.value)).toBeTruthy()
    })
    it('Australia is NOT yet supported as a bucket location', () => {
      expect(isSupportedBucketLocation('AUSTRALIA-SOUTHEAST1')).toBeFalsy()
    })
  })
  