mapillary-js/spec/viewer/LoadingService.spec.ts
Oscar Lorentzon a720d1a2df Migrate to TS 2.1.
Extending Error does not create instances of the created error classes.
Act accordingly in unit test error type checks.
Upgrade three js typings for compatibility.
Error derived classes does not need to create stack trace
explicitly.
Use tilde ranges for ts dev deps for future compatibility.
2016-12-21 17:04:09 +01:00

20 lines
501 B
TypeScript

/// <reference path="../../typings/index.d.ts" />
import {LoadingService} from "../../src/Viewer";
describe("LoadingService", () => {
let loadingService: LoadingService;
beforeEach(() => {
loadingService = new LoadingService();
});
it("should be initialized to not loading", (done: Function) => {
loadingService.loading$
.subscribe((loading: boolean) => {
expect(loading).toBe(false);
done();
});
});
});