add "no test file available"

pull/1/head
yann300 6 years ago
parent 2f2e62f652
commit e9251de5c6
  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