diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index 1c35be9aeb..1c4d2f95e0 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -27,6 +27,7 @@ module.exports = class TestTab { return { render () { return self._view.el } } } render () { + var self = this var container = yo`
` function append (container, txt) { @@ -85,7 +86,7 @@ module.exports = class TestTab { container.innerHTML = '' var path = this._deps.fileManager.currentPath() var tests = [] - this._deps.fileManager.filesFromPath(path, (error, files) => { + self._deps.fileManager.filesFromPath(path, (error, files) => { if (!error) { for (var file in files) { if (/.(_test.sol)$/.exec(file)) tests.push(path + file)