mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-08 11:04:15 +00:00
Remove empty files, Ref: #373
This commit is contained in:
parent
e020ca00f5
commit
c0acc805e8
@ -58,7 +58,7 @@ describe('DrawingAddedComponent', () => {
|
||||
component.project = { project_id: 'sampleId' } as Project;
|
||||
component.selectedDrawing = 'rectangle';
|
||||
const pointToAddSelectedDataEvent = new AddedDataEvent(0, 0);
|
||||
spyOn(mockedDrawingService, 'add').and.returnValue(Observable.of({}));
|
||||
spyOn(mockedDrawingService, 'add').and.returnValue(Observable.of());
|
||||
|
||||
mockedDrawingsEventSource.pointToAddSelected.emit(pointToAddSelectedDataEvent);
|
||||
|
||||
|
@ -57,7 +57,7 @@ describe('DrawingDraggedComponent', () => {
|
||||
element: mapDrawingElement
|
||||
};
|
||||
const drawingDraggedDataEvent = new DraggedDataEvent<MapDrawing>(mapDrawing, 0, 0);
|
||||
spyOn(mockedDrawingService, 'updatePosition').and.returnValue(Observable.of({}));
|
||||
spyOn(mockedDrawingService, 'updatePosition').and.returnValue(Observable.of());
|
||||
|
||||
mockedDrawingsEventSource.dragged.emit(drawingDraggedDataEvent);
|
||||
|
||||
|
@ -60,7 +60,7 @@ describe('DrawingResizedComponent', () => {
|
||||
element: mapDrawingElement
|
||||
};
|
||||
const drawingResizedDataEvent = new ResizedDataEvent<MapDrawing>(mapDrawing, 0, 0, 100, 100);
|
||||
spyOn(mockedDrawingService, 'updateSizeAndPosition').and.returnValue(Observable.of({}));
|
||||
spyOn(mockedDrawingService, 'updateSizeAndPosition').and.returnValue(Observable.of());
|
||||
|
||||
mockedDrawingsEventSource.resized.emit(drawingResizedDataEvent);
|
||||
|
||||
|
@ -68,7 +68,7 @@ describe('NodeDraggedComponent', () => {
|
||||
z: 0
|
||||
};
|
||||
const draggedDataEvent = new DraggedDataEvent<MapNode>(mapNode, 0, 0);
|
||||
spyOn(mockedNodeService, 'updatePosition').and.returnValue(Observable.of({}));
|
||||
spyOn(mockedNodeService, 'updatePosition').and.returnValue(Observable.of());
|
||||
|
||||
mockedNodesEventSource.dragged.emit(draggedDataEvent);
|
||||
|
||||
|
@ -63,7 +63,7 @@ describe('NodeLabelDraggedComponent', () => {
|
||||
nodeId: 'node id'
|
||||
};
|
||||
const nodeDraggedDataEvent = new DraggedDataEvent<MapLabel>(mapLabel, 0, 0);
|
||||
spyOn(mockedNodeService, 'updateLabel').and.returnValue(Observable.of({}));
|
||||
spyOn(mockedNodeService, 'updateLabel').and.returnValue(Observable.of());
|
||||
|
||||
mockedNodesEventSource.labelDragged.emit(nodeDraggedDataEvent);
|
||||
|
||||
|
@ -59,7 +59,7 @@ describe('TextAddedComponent', () => {
|
||||
it('should call drawing service when text added', () => {
|
||||
component.project = { project_id: 'sampleId' } as Project;
|
||||
const textAddedDataEvent = new TextAddedDataEvent('savedText', 0, 0);
|
||||
spyOn(mockedDrawingService, 'add').and.returnValue(Observable.of({}));
|
||||
spyOn(mockedDrawingService, 'add').and.returnValue(Observable.of());
|
||||
|
||||
mockedDrawingsEventSource.textAdded.emit(textAddedDataEvent);
|
||||
|
||||
|
@ -55,7 +55,7 @@ describe('TextEditedComponent', () => {
|
||||
text_decoration: 'sample decoration'
|
||||
};
|
||||
const textEditedDataEvent = new TextEditedDataEvent('id', 'edited text', textElement);
|
||||
spyOn(mockedDrawingService, 'updateText').and.returnValue(Observable.of({}));
|
||||
spyOn(mockedDrawingService, 'updateText').and.returnValue(Observable.of());
|
||||
|
||||
mockedDrawingsEventSource.textEdited.emit(textEditedDataEvent);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user