test file list

pull/1862/head
Aniket-Engg 3 years ago committed by Aniket
parent 219ef273a0
commit 216e9855d6
  1. 15
      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 (<div className="testList py-2 mt-0 border-bottom">No test file available</div>)
// const testsMessage = (tests && tests.length ? this.listTests() : 'No test file available')
// const el = yo`<div class="${css.testList} py-2 mt-0 border-bottom">${testsMessage}</div>`
// if (!this.testFilesListElement) {
// this.testFilesListElement = el
// } else {
// yo.update(this.testFilesListElement, el)
// }
// this.updateRunAction()
// return this.testFilesListElement
}
console.log('props---->', props) console.log('props---->', props)
return ( return (
<div className="px-2" id="testView"> <div className="px-2" id="testView">
@ -224,7 +237,7 @@ export const SolidityUnitTesting = (props: SolidityUnitTestingProps) => {
/> />
<label className="text-nowrap pl-2 mb-0" htmlFor="checkAllTests"> Select all </label> <label className="text-nowrap pl-2 mb-0" htmlFor="checkAllTests"> Select all </label>
</div> </div>
{/* ${this.updateTestFileList()} */} {updateTestFileList()}
<div className="align-items-start flex-column mt-2 mx-3 mb-0"> <div className="align-items-start flex-column mt-2 mx-3 mb-0">
{/* ${this.resultStatistics} {/* ${this.resultStatistics}
${this.testsExecutionStopped} ${this.testsExecutionStopped}

Loading…
Cancel
Save