diff --git a/pom.xml b/pom.xml index cada7a7b..e35194ed 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.mauvaisetroupe.eadesignit ea-design-it - 0.10.2-SNAPSHOT + 0.10.3 jar EA Design It Description for EADesignIt diff --git a/src/test/javascript/spec/app/entities/landscape-view/landscape-view-details.component.spec.ts b/src/test/javascript/spec/app/entities/landscape-view/landscape-view-details.component.spec.ts index 6cb50f65..a53a1409 100644 --- a/src/test/javascript/spec/app/entities/landscape-view/landscape-view-details.component.spec.ts +++ b/src/test/javascript/spec/app/entities/landscape-view/landscape-view-details.component.spec.ts @@ -62,12 +62,17 @@ describe('Component Tests', () => { describe('OnInit', () => { it('Should call load all on init', async () => { // GIVEN + landscapeViewServiceStub.getPlantUML.resolves({ + data: { + svg: '@startuml\nAlice -> Bob: Authentication Request\n@enduml', + labelsShown: false, + }, + }); const lanscapeDTO: ILandscapeDTO = { landscape: { id: 123, flows: [] }, consolidatedCapability: [], }; landscapeViewServiceStub.find.resolves(lanscapeDTO); - landscapeViewServiceStub.getPlantUML.resolves('@startuml\nAlice -> Bob: Authentication Request\n@enduml'); // WHEN comp.retrieveLandscapeView(123); @@ -86,13 +91,18 @@ describe('Component Tests', () => { describe('Before route enter', () => { it('Should retrieve data', async () => { // GIVEN + landscapeViewServiceStub.getPlantUML.resolves({ + data: { + svg: '@startuml\nAlice -> Bob: Authentication Request\n@enduml', + labelsShown: false, + }, + }); const lanscapeDTO: ILandscapeDTO = { landscape: { id: 123, flows: [] }, consolidatedCapability: [], }; landscapeViewServiceStub.find.resolves(lanscapeDTO); - landscapeViewServiceStub.getPlantUML.resolves('@startuml\nAlice -> Bob: Authentication Request\n@enduml'); // WHEN comp.beforeRouteEnter({ params: { landscapeViewId: 123 } }, null, cb => cb(comp));