Commit 689585a1 authored by yann300's avatar yann300

standard

parent 1119c5bb
'use strict' 'use strict'
const SourceHighlighter = require('./sourceHighlighter') const SourceHighlighter = require('./sourceHighlighter')
import { Plugin } from '@remixproject/engine'
import * as packageJson from '../../../package.json'
// EditorApi: // EditorApi:
// - methods: ['highlight', 'discardHighlight'], // - methods: ['highlight', 'discardHighlight'],
......
...@@ -19,7 +19,7 @@ const profile = { ...@@ -19,7 +19,7 @@ const profile = {
} }
module.exports = class TestTab extends ViewPlugin { module.exports = class TestTab extends ViewPlugin {
constructor (fileManager, filePanel, compileTab, appManager, renderer, editor) { constructor (fileManager, filePanel, compileTab, appManager, renderer) {
super(profile) super(profile)
this.compileTab = compileTab this.compileTab = compileTab
this._view = { el: null } this._view = { el: null }
...@@ -120,7 +120,7 @@ module.exports = class TestTab extends ViewPlugin { ...@@ -120,7 +120,7 @@ module.exports = class TestTab extends ViewPlugin {
updateFinalResult (_errors, result, filename) { updateFinalResult (_errors, result, filename) {
this.testsSummary.hidden = false this.testsSummary.hidden = false
if (_errors) { if (_errors) {
_errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsSummary, {type: err.severity}) ) _errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsSummary, {type: err.severity}))
return return
} }
this.testsSummary.appendChild(yo`<div class=${css.summaryTitle}> ${filename} </div>`) this.testsSummary.appendChild(yo`<div class=${css.summaryTitle}> ${filename} </div>`)
......
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