mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-25 14:07:28 +00:00
25 lines
768 B
TypeScript
25 lines
768 B
TypeScript
/// <reference path="../../typings/jasmine/jasmine.d.ts" />
|
|
|
|
import {IAPINavIm, IAPINavImS, IAPINavImIm, APIv2} from "../../src/API";
|
|
import {GraphService, MyGraph, Node} from "../../src/Graph";
|
|
|
|
describe("GraphService", () => {
|
|
var graphService: GraphService;
|
|
|
|
beforeEach(() => {
|
|
graphService = new GraphService("MkJKbDA0bnZuZlcxeTJHTmFqN3g1dzo5NWEzOTg3OWUxZDI3MjM4");
|
|
});
|
|
|
|
it("exists", () => {
|
|
expect(graphService).toBeDefined();
|
|
});
|
|
|
|
it("can subscribe to the graph", (done) => {
|
|
graphService.getNode("gAktPQ48LwONPDLyODMkbA").subscribe((node: Node): void => {
|
|
graphService.getNode("gAktPQ48LwONPDLyODMkbA").subscribe((node: Node): void => {
|
|
done();
|
|
});
|
|
});
|
|
});
|
|
});
|