mapillary-js/spec/viewer/LoadingService.spec.ts
Oscar Lorentzon c38f4e7c4f chore: remove typings dependency
Add types folder as type root.
Declare modules in type def files to be able to compile.
2018-06-11 06:16:58 +00:00

18 lines
450 B
TypeScript

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