UNPKG

@eastsideco/escshopify

Version:

WIP JS library for Shopify, containing a variety of useful functionality.

17 lines (13 loc) 478 B
/* global describe, it, before */ import chai from 'chai'; import escshopify from '../lib/escshopify.node.js'; chai.expect(); const expect = chai.expect; describe('Given an instance of escshopify', () => { describe('using GeoService to do a geo lookup', () => { it('should return ip geo info', async () =>{ var geo = await escshopify.geoService.lookupGeo('8.8.8.8'); expect(geo.country.iso_code).to.be.equal('US'); }); }); });