mapillary-js/spec/API.spec.ts
2015-12-02 12:51:57 -08:00

27 lines
625 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();
});
});
});