mapillary-js/spec/api/API.spec.ts
Johan Gyllenspetz b9b9ca31f9 Refactor Parsing and specs
* Remove optionsparser for now (its a bad construct)
* Move specs to dirs
2016-01-08 16:14:01 -08:00

28 lines
632 B
TypeScript

/// <reference path="../../typings/jasmine/jasmine.d.ts" />
import {APIv2, IAPINavIm} from "../../src/API";
describe("APIv2", () => {
var apiV2: APIv2;
beforeEach(() => {
apiV2 = new APIv2("MkJKbDA0bnZuZlcxeTJHTmFqN3g1dzo5NWEzOTg3OWUxZDI3MjM4")
});
it("exists", () => {
expect(apiV2).toBeDefined();
});
it("calls h", (done) => {
apiV2.nav.h("9q5f57x").then((response: IAPINavIm) => {
done();
});
});
it("calls im", (done) => {
apiV2.nav.im("YWgi36yAvaCOxxAmQxN1kg").then((response: IAPINavIm) => {
done();
});
});
});