Skip to content

Commit

Permalink
repair javascrpit test - ready for 0.10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mauvaisetroupe committed Oct 4, 2023
1 parent af62dc5 commit 1f686b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.mauvaisetroupe.eadesignit</groupId>
<artifactId>ea-design-it</artifactId>
<version>0.10.2-SNAPSHOT</version>
<version>0.10.3</version>
<packaging>jar</packaging>
<name>EA Design It</name>
<description>Description for EADesignIt</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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));
Expand Down

0 comments on commit 1f686b7

Please sign in to comment.