test tab: check path & provider value

pull/1/head
yann300 6 years ago
parent 8f8b5d6493
commit 215db3a879
  1. 2
      src/app/tabs/test-tab.js

@ -83,7 +83,9 @@ module.exports = class TestTab {
function getTests (self, cb) { function getTests (self, cb) {
var path = self._deps.fileManager.currentPath() var path = self._deps.fileManager.currentPath()
if (!path) return cb(null, [])
var provider = self._deps.fileManager.fileProviderOf(path) var provider = self._deps.fileManager.fileProviderOf(path)
if (!provider) return cb(null, [])
var tests = [] var tests = []
self._deps.fileManager.filesFromPath(path, (error, files) => { self._deps.fileManager.filesFromPath(path, (error, files) => {
if (error) return cb(error) if (error) return cb(error)

Loading…
Cancel
Save