UNPKG

physical-node

Version:

virtual physical network infrastructure layer for node

9 lines (7 loc) 310 B
import {expect} from "chai"; import {promiseRequest} from "../src/promiseRequest"; describe("request", ()=>{ it("fetches an IP address from https://api.ipify.org", async ()=>{ expect((await promiseRequest("https://api.ipify.org")).split('.').length).to.equal(4); }).timeout(5000); });