mirror of
https://github.com/mapillary/mapillary-js.git
synced 2025-12-08 17:35:55 +00:00
30 lines
1001 B
TypeScript
30 lines
1001 B
TypeScript
|
|
import { SpatialComponent } from "../../../src/component/spatial/SpatialComponent";
|
|
import { ContainerMockCreator } from "../../helper/ContainerMockCreator";
|
|
import { NavigatorMockCreator } from "../../helper/NavigatorMockCreator";
|
|
|
|
describe("SpatialComponent.ctor", () => {
|
|
it("should be defined", () => {
|
|
const component: SpatialComponent =
|
|
new SpatialComponent(
|
|
SpatialComponent.componentName,
|
|
new ContainerMockCreator().create(),
|
|
new NavigatorMockCreator().create());
|
|
|
|
expect(component).toBeDefined();
|
|
});
|
|
});
|
|
|
|
describe("SpatialComponent.deactivate", () => {
|
|
it("should deactivate properly", () => {
|
|
const component: SpatialComponent =
|
|
new SpatialComponent(
|
|
SpatialComponent.componentName,
|
|
new ContainerMockCreator().create(),
|
|
new NavigatorMockCreator().create());
|
|
|
|
component.activate();
|
|
component.deactivate();
|
|
});
|
|
});
|