mapillary-js/spec/graph/GraphService.spec.ts
2015-12-18 22:51:33 -08:00

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