davglass / zipcodes

Zipcode lookup node module
Other
157 stars 83 forks source link

Searching for zipcodes in 85395 with radius doesn't return zipcode in list #43

Open reduxdj opened 2 years ago

reduxdj commented 2 years ago

For example:

describe('Zip Code Test', function() {
  it(`Should find a result from the ziplist`, async function() {
    const zipCode = '85395';
    const zipList = codes[zipCode];
    const zipItem = zipList?.find(({ zip }) => zip === zipCode);
    expect(zipItem).to.not.be.undefined;
  });
});