mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-18 13:56:53 +00:00
TS lint scripts for spec and src. Fix all spec files to comply with linting. Use lint script in pre commit hook.
20 lines
491 B
TypeScript
20 lines
491 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) => {
|
|
loadingService.loading$
|
|
.subscribe((loading: boolean) => {
|
|
expect(loading).toBe(false);
|
|
done();
|
|
});
|
|
});
|
|
});
|