Commit 268b8de2 authored by yann300's avatar yann300

fix filemanager ref

parent ac2ebb20
...@@ -27,6 +27,7 @@ module.exports = class TestTab { ...@@ -27,6 +27,7 @@ module.exports = class TestTab {
return { render () { return self._view.el } } return { render () { return self._view.el } }
} }
render () { render () {
var self = this
var container = yo`<div class="tests" id="tests"></div>` var container = yo`<div class="tests" id="tests"></div>`
function append (container, txt) { function append (container, txt) {
...@@ -85,7 +86,7 @@ module.exports = class TestTab { ...@@ -85,7 +86,7 @@ module.exports = class TestTab {
container.innerHTML = '' container.innerHTML = ''
var path = this._deps.fileManager.currentPath() var path = this._deps.fileManager.currentPath()
var tests = [] var tests = []
this._deps.fileManager.filesFromPath(path, (error, files) => { self._deps.fileManager.filesFromPath(path, (error, files) => {
if (!error) { if (!error) {
for (var file in files) { for (var file in files) {
if (/.(_test.sol)$/.exec(file)) tests.push(path + file) if (/.(_test.sol)$/.exec(file)) tests.push(path + file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment