Skip to content

Commit 043b575

Browse files
committed
mv constants
1 parent 1109872 commit 043b575

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

apps/remix-ide/src/app/tabs/test-tab.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,19 @@ export default class TestTab extends ViewPlugin {
113113
const web3 = await this.call('blockchain', 'web3VM')
114114
await this.testRunner.init(web3)
115115
await this.createTestLibs()
116-
return new Promise(async (resolve, reject) => {
117-
const runningTest = {}
118-
runningTest[path] = { content }
119-
const { currentVersion, evmVersion, optimize, runs } = await this.compileTab.getCurrentCompilerConfig()
120-
const currentCompilerUrl = urlFromVersion(currentVersion)
121-
const compilerConfig = {
122-
currentCompilerUrl,
123-
evmVersion,
124-
optimize,
125-
usingWorker: canUseWorker(currentVersion),
126-
runs
127-
}
116+
const runningTest = {}
117+
runningTest[path] = { content }
118+
const { currentVersion, evmVersion, optimize, runs } = await this.compileTab.getCurrentCompilerConfig()
119+
const currentCompilerUrl = urlFromVersion(currentVersion)
120+
const compilerConfig = {
121+
currentCompilerUrl,
122+
evmVersion,
123+
optimize,
124+
usingWorker: canUseWorker(currentVersion),
125+
runs
126+
}
127+
return new Promise((resolve, reject) => {
128+
128129
this.testRunner.runTestSources(runningTest, compilerConfig, () => { /* Do nothing. */ }, () => { /* Do nothing. */ }, null, (error, result) => {
129130
if (error) return reject(error)
130131
resolve(result)

0 commit comments

Comments
 (0)