mapillary-js/spec/component/spatialData/SpatialDataComponent.spec.ts
Oscar Lorentzon f23a40cc85 feat(spatial): add selection and hover visualization
Indicate hovered and selected nodes with different color.
2021-01-13 10:35:01 +01:00

30 lines
1.0 KiB
TypeScript

import SpatialDataComponent from "../../../src/component/spatialdata/SpatialDataComponent";
import { ContainerMockCreator } from "../../helper/ContainerMockCreator.spec";
import { NavigatorMockCreator } from "../../helper/NavigatorMockCreator.spec";
describe("SpatialDataComponent.ctor", () => {
it("should be defined", () => {
const component: SpatialDataComponent =
new SpatialDataComponent(
SpatialDataComponent.componentName,
new ContainerMockCreator().create(),
new NavigatorMockCreator().create());
expect(component).toBeDefined();
});
});
describe("SpatialDataComponent.deactivate", () => {
it("should deactivate properly", () => {
const component: SpatialDataComponent =
new SpatialDataComponent(
SpatialDataComponent.componentName,
new ContainerMockCreator().create(),
new NavigatorMockCreator().create());
component.activate();
component.deactivate();
});
});