From 89579d1bdc3c388dfad01bb642450970316b9470 Mon Sep 17 00:00:00 2001 From: rmgaray Date: Mon, 7 Oct 2024 16:56:42 -0300 Subject: [PATCH] remove redundant test table --- tests/api/api.test.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/api/api.test.ts b/tests/api/api.test.ts index 140262c..75df9e7 100644 --- a/tests/api/api.test.ts +++ b/tests/api/api.test.ts @@ -17,7 +17,6 @@ const cdlTxt = fs.readFileSync("csl-types/cardano-data-lite.d.ts", { "encoding": // Arrays of parameters for the tests let compareToCslTests: Array = []; -let compareToCdlTests: Array = []; // Paths where the reports will be saved const missingClassesPath = "tests/reports/api_missing_classes.csv"; @@ -287,7 +286,7 @@ let missingMethodsCsv = "Missing method\n" missingMethodsCsv += missingMethods.join("\n"); fs.writeFileSync(missingMethodsPath, missingMethodsCsv); -// We construct the test tables +// We construct the test table let n: number = 0; for (const cls of cslClasses) { for (const method of cls.methods) { @@ -296,16 +295,6 @@ for (const cls of cslClasses) { } } -n = 0; -for (const cls of cdlClasses) { - for (const method of cls.methods) { - compareToCdlTests.push({ n: n, class: cls.name, comparedToMethod: method }) - n += 1; - } -} -console.log("compareToCslTests.length: ", compareToCslTests.length) -console.log("compareToCdlTests.length: ", compareToCdlTests.length) - // We open a report file to write down each method comparison failure as we find it let methodFailuresFile = fs.openSync(methodFailuresPath, "w"); fs.writeFileSync(methodFailuresFile, "Affected class,Method,Failure reason,Failure message\n");