Skip to content
Snippets Groups Projects
Commit d8512500 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Add missing clone.

parent 6fdfdf4c
Branches
Tags
No related merge requests found
......@@ -50,8 +50,9 @@ export function buildTestCasesWithoutNonInputVariables(
testCases: Situation[],
): Situation[] {
const entities = Object.values(entityByKey)
const situations = [...testCases]
for (const [situationIndex, situation] of situations.entries()) {
testCases = [...testCases]
for (let [situationIndex, situation] of testCases.entries()) {
situation = testCases[situationIndex] = { ...situation }
const inputInstantsByVariableName =
inputInstantsByVariableNameArray[situationIndex]
for (const entity of entities) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment