Skip to content

Commit 65fbc6c

Browse files
committed
refactor: cleanup ScatterPlot.test.tsx
1 parent 248d026 commit 65fbc6c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

benchexec/tablegenerator/react-table/src/tests/ScatterPlot.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe("Scatter Plot with columns of same runset should match HTML snapshot",
9797
Overriding of toString() method is used for better identifying test cases. */
9898
const selectionOptions: SelectionOption[] =
9999
plotInstance.props.tools[0].columns.map((col) => ({
100-
value: `0-${col.colIdx}`,
100+
value: "0-" + col.colIdx,
101101
toString: () => col.display_title,
102102
}));
103103

@@ -125,8 +125,8 @@ describe("Scatter Plot with columns of different runsets should match HTML snaps
125125
const selectionOptions: SelectionOption[] = colsWithToolRef
126126
.filter((col, index) => toolIdxesOfCols.indexOf(col.toolIdx) === index)
127127
.map((col) => ({
128-
value: `${col.toolIdx}-${col.colIdx}`,
129-
toString: () => `${col.display_title} of runset ${col.toolIdx}`,
128+
value: col.toolIdx + "-" + col.colIdx,
129+
toString: () => col.display_title + " of runset " + col.toolIdx,
130130
}));
131131

132132
// All combinations of the first columns of all runsets with all result options.
@@ -153,7 +153,7 @@ describe("Scatter Plot with columns of different types should match HTML snapsho
153153
const selectionOptions: SelectionOption[] = colsWithToolRef
154154
.filter((col, index) => typesOfCols.indexOf(col.type) === index)
155155
.map((col) => ({
156-
value: `${col.toolIdx}-${col.colIdx}`,
156+
value: col.toolIdx + "-" + col.colIdx,
157157
toString: () => String(col.type),
158158
}));
159159

@@ -182,8 +182,8 @@ describe("Scatter Plot linear regression should match HTML snapshot", () => {
182182
(col) => plotInstance.handleType(col.toolIdx, col.colIdx) !== "ordinal",
183183
)
184184
.map((col) => ({
185-
value: `${col.toolIdx}-${col.colIdx}`,
186-
toString: () => `${col.display_title} of runset ${col.toolIdx}`,
185+
value: col.toolIdx + "-" + col.colIdx,
186+
toString: () => col.display_title + " of runset " + col.toolIdx,
187187
}));
188188

189189
// All paired combinations of all columns.

0 commit comments

Comments
 (0)