aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages/composition/palette/palette.component.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/composition/palette/palette.component.spec.ts')
-rw-r--r--catalog-ui/src/app/ng2/pages/composition/palette/palette.component.spec.ts26
1 files changed, 0 insertions, 26 deletions
diff --git a/catalog-ui/src/app/ng2/pages/composition/palette/palette.component.spec.ts b/catalog-ui/src/app/ng2/pages/composition/palette/palette.component.spec.ts
index efa9cd3370..e96102bd9b 100644
--- a/catalog-ui/src/app/ng2/pages/composition/palette/palette.component.spec.ts
+++ b/catalog-ui/src/app/ng2/pages/composition/palette/palette.component.spec.ts
@@ -5,10 +5,8 @@ import {EventListenerService} from "../../../../services/event-listener-service"
import {PaletteElementComponent} from "./palette-element/palette-element.component";
import {PaletteComponent} from "./palette.component";
import {ConfigureFn, configureTests} from "../../../../../jest/test-config.helper";
-import {GRAPH_EVENTS} from "../../../../utils/constants";
import {KeyValuePipe} from "../../../pipes/key-value.pipe";
import {ResourceNamePipe} from "../../../pipes/resource-name.pipe";
-import {LeftPaletteComponent} from "../../../../models/components/displayComponent";
import {Observable} from "rxjs/Observable";
import {leftPaletteElements} from "../../../../../jest/mocks/left-paeltte-elements.mock";
import {NgxsModule, Select} from '@ngxs/store';
@@ -53,30 +51,6 @@ describe('palette component', () => {
expect(fixture).toMatchSnapshot();
});
- it('should call on palette component hover in event', () => {
- let paletteObject = <LeftPaletteComponent>{categoryType: 'COMPONENT'};
- fixture.componentInstance.onMouseOver(mockedEvent, paletteObject);
- expect(eventServiceMock.notifyObservers).toHaveBeenCalledWith(GRAPH_EVENTS.ON_PALETTE_COMPONENT_HOVER_IN, paletteObject);
- });
-
- it('should call on palette component hover out event', () => {
- let paletteObject = <LeftPaletteComponent>{categoryType: 'COMPONENT'};
- fixture.componentInstance.onMouseOut(paletteObject);
- expect(eventServiceMock.notifyObservers).toHaveBeenCalledWith(GRAPH_EVENTS.ON_PALETTE_COMPONENT_HOVER_OUT);
- });
-
- it('should call show popup panel event', () => {
- let paletteObject = <LeftPaletteComponent>{categoryType: 'GROUP'};
- fixture.componentInstance.onMouseOver(mockedEvent, paletteObject);
- expect(eventServiceMock.notifyObservers).toHaveBeenCalledWith(GRAPH_EVENTS.ON_PALETTE_COMPONENT_SHOW_POPUP_PANEL, paletteObject, mockedEvent.target);
- });
-
- it('should call hide popup panel event', () => {
- let paletteObject = <LeftPaletteComponent>{categoryType: 'GROUP'};
- fixture.componentInstance.onMouseOut(paletteObject);
- expect(eventServiceMock.notifyObservers).toHaveBeenCalledWith(GRAPH_EVENTS.ON_PALETTE_COMPONENT_HIDE_POPUP_PANEL);
- });
-
it('should build Palette By Categories without searchText', () => {
fixture.componentInstance.buildPaletteByCategories();
expect(fixture.componentInstance.paletteElements["Generic"]["Network"].length).toBe(5);