extracting code from main component

This commit is contained in:
Piotr Pekala
2018-12-18 05:53:18 -08:00
parent 019584c32c
commit 9ce2adfb67
6 changed files with 114 additions and 82 deletions

View File

@ -42,6 +42,7 @@ import { HttpServer } from '../../services/http-server.service';
import { Server } from '../../models/server';
import { ResizedDataEvent } from '../../cartography/events/event-source';
import { MapLabelToLabelConverter } from '../../cartography/converters/map/map-label-to-label-converter';
import { DrawingsFactory } from '../../cartography/helpers/drawings-factory';
export class MockedProgressService {
public activate() {}
@ -116,6 +117,7 @@ describe('ProjectMapComponent', () => {
{ provide: NodesEventSource },
{ provide: DrawingsEventSource },
{ provide: LinksEventSource },
{ provide: DrawingsFactory },
{ provide: MapDrawingToSvgConverter, useValue: {
convert: () => { return ''}
} },
@ -193,10 +195,4 @@ describe('ProjectMapComponent', () => {
expect(component.resetDrawToolChoice).toHaveBeenCalled();
});
it('should return drawing mock of correct type'), () => {
let mock = component.getDrawingMock('rectangle');
expect(mock instanceof RectElement).toBe(true);
}
});