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