UNPKG

polygon.io

Version:

Isomorphic Javascript client for Polygon.io Stocks, Forex, and Crypto APIs

21 lines (19 loc) 493 B
import * as chai from "chai"; import { restClient } from "./index"; describe("[EXPORT] rest endpoints", () => { chai.should(); const rest = restClient("invalid"); it("> reference", () => { rest.should.be.an("object"); rest.reference.should.be.an("object"); }); it("> stocks", () => { rest.stocks.should.be.an("object"); }); it("> forex", () => { rest.forex.should.be.an("object"); }); it("> crypto", () => { rest.crypto.should.be.an("object"); }); });