mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-25 14:07:28 +00:00
27 lines
625 B
TypeScript
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();
|
|
});
|
|
});
|
|
}); |