mapillary-js/spec/viewer/LoadingService.spec.ts
Oscar Lorentzon 89030047ad TS lint scripts.
TS lint scripts for spec and src.
Fix all spec files to comply with linting.
Use lint script in pre commit hook.
2016-07-12 11:42:23 -04:00

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