Skip to content

Commit

Permalink
Added linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lam authored and itsalam committed Oct 26, 2023
1 parent 55fac29 commit 6d2904c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions cypress/integration/rendering/flowchart-elk.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,6 @@ end
});

describe('Title and arrow styling #4813', () => {

it('should render a flowchart with title', () => {
const titleString = 'Test Title';
renderGraph(
Expand All @@ -855,10 +854,9 @@ describe('Title and arrow styling #4813', () => {
---
flowchart LR
A-->B`,
{ flowchart: { defaultRenderer: "elk" } }
{ flowchart: { defaultRenderer: 'elk' } }
);
cy.get('svg').should((svg) => {

const title = svg[0].querySelector('text');
expect(title.textContent).to.contain(titleString);
});
Expand All @@ -873,7 +871,7 @@ describe('Title and arrow styling #4813', () => {
B-.-oC
C==xD
D ~~~ A`,
{ flowchart: { defaultRenderer: "elk" } }
{ flowchart: { defaultRenderer: 'elk' } }
);
cy.get('svg').should((svg) => {
const edges = svg[0].querySelectorAll('.edges path');
Expand All @@ -883,4 +881,4 @@ describe('Title and arrow styling #4813', () => {
expect(edges[3]).to.have.css('stroke-width', '1.5px');
});
});
})
});
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ const insertEdge = function (edgesEl, edge, edgeData, diagObj, parentLookupDb, i
.attr('class', 'path ' + edgeData.classes)
.attr('fill', 'none');
Object.entries(edgeData).forEach(([key, value]) => {
if (key !== 'classes'){
if (key !== 'classes') {
edgePath.attr(key, value);
}
});
Expand Down

0 comments on commit 6d2904c

Please sign in to comment.