From 216e9855d63eb78c5fa93118f2d046ba35a6872c Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Fri, 12 Nov 2021 11:50:15 +0530 Subject: [PATCH] test file list --- .../src/lib/solidity-unit-testing.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx b/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx index 4a04855c34..5b1526c589 100644 --- a/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx +++ b/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx @@ -166,6 +166,19 @@ export const SolidityUnitTesting = (props: SolidityUnitTestingProps) => { // } } + const updateTestFileList = (tests = []) => { + return (
No test file available
) + // const testsMessage = (tests && tests.length ? this.listTests() : 'No test file available') + // const el = yo`
${testsMessage}
` + // if (!this.testFilesListElement) { + // this.testFilesListElement = el + // } else { + // yo.update(this.testFilesListElement, el) + // } + // this.updateRunAction() + // return this.testFilesListElement + } + console.log('props---->', props) return (
@@ -224,7 +237,7 @@ export const SolidityUnitTesting = (props: SolidityUnitTestingProps) => { />
- {/* ${this.updateTestFileList()} */} + {updateTestFileList()}
{/* ${this.resultStatistics} ${this.testsExecutionStopped}