add "no test file available"

pull/3094/head
yann300 6 years ago
parent b3d4aca8e9
commit 8e5fb5ffa9
  1. 8
      src/app/tabs/test-tab.js

@ -109,7 +109,13 @@ module.exports = class TestTab {
if (error) return tooltip(error)
self.data.allTests = tests
self.data.selectedTests = [...self.data.allTests]
yo.update(self.testList, yo`<div class=${css.testList}>${listTests()}</div>`)
if (!tests.length) {
yo.update(self.testList, yo`<div class=${css.testList}>No test file available</div>`)
} else {
yo.update(self.testList, yo`<div class=${css.testList}>${listTests()}</div>`)
}
testsOutput.hidden = true
testsSummary.hidden = true
testsOutput.innerHTML = ''
testsSummary.innerHTML = ''
})

Loading…
Cancel
Save