|
|
@ -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) |
|
|
|