test tab: check path & provider value

pull/3094/head
yann300 6 years ago
parent bd826a2d86
commit de5f1f33a5
  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