chore: resolve eslint warnings in cypress/integration/rendering/imageShape.spec.ts

This commit is contained in:
Sidharth Vinod
2025-04-19 10:21:41 +05:30
parent 2ddc3403de
commit ff9d26bc70

View File

@@ -12,7 +12,7 @@ const labelPos = [undefined, 't', 'b'] as const;
looks.forEach((look) => { looks.forEach((look) => {
directions.forEach((direction) => { directions.forEach((direction) => {
labelPos.forEach((pos) => { labelPos.forEach((pos) => {
describe(`Test imageShape in ${look} look and dir ${direction} with label position ${pos ? pos : 'not defined'}`, () => { describe(`Test imageShape in ${look} look and dir ${direction} with label position ${pos ?? 'not defined'}`, () => {
it(`without label`, () => { it(`without label`, () => {
let flowchartCode = `flowchart ${direction}\n`; let flowchartCode = `flowchart ${direction}\n`;
flowchartCode += ` nA --> A@{ img: 'https://cdn.pixabay.com/photo/2020/02/22/18/49/paper-4871356_1280.jpg', w: '100', h: '100' }\n`; flowchartCode += ` nA --> A@{ img: 'https://cdn.pixabay.com/photo/2020/02/22/18/49/paper-4871356_1280.jpg', w: '100', h: '100' }\n`;