mapillary-js/test/viewer/LoadingService.test.ts
2021-03-27 18:34:32 +01:00

18 lines
467 B
TypeScript

import { LoadingService } from "../../src/viewer/LoadingService";
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();
});
});
});