mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-18 13:56:53 +00:00
28 lines
632 B
TypeScript
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();
|
|
});
|
|
});
|
|
});
|