src/app/tests/mocks/mock-tools.ts
Methods |
constructor()
|
Defined in src/app/tests/mocks/mock-tools.ts:5
|
convertTaskGraphToText | ||||||||
convertTaskGraphToText(graph: Graph)
|
||||||||
Defined in src/app/tests/mocks/mock-tools.ts:15
|
||||||||
Parameters :
Returns :
Observable<TaskConversion>
|
parseTaskTextToGraph |
parseTaskTextToGraph(dsl: string, name: string)
|
Defined in src/app/tests/mocks/mock-tools.ts:11
|
Returns :
Observable<TaskConversion>
|
import { ToolsService } from '../../tasks/components/flo/tools.service';
import { Observable, of } from 'rxjs';
import { Graph, TaskConversion } from '../../tasks/components/flo/model/models';
export class MockToolsService extends ToolsService {
constructor() {
super(null, null);
}
parseTaskTextToGraph(dsl: string, name: string = 'unknown'): Observable<TaskConversion> {
return of(new TaskConversion(dsl, []));
}
convertTaskGraphToText(graph: Graph): Observable<TaskConversion> {
return of(new TaskConversion('', [], graph));
}
}