Better indentation

pull/5370/head
William Entriken 6 years ago committed by yann300
parent aa9c054a1f
commit 585a5703d1
  1. 2
      remix-tests/src/compiler.js

@ -57,7 +57,7 @@ function compileFileOrFiles (filename, isDirectory, opts, cb) {
if (foundpath.split('.').pop() === 'sol') {
let c = fs.readFileSync(foundpath).toString()
const s = /^(import)\s['"](remix_tests.sol|tests.sol)['"];/gm
if (foundpath.indexOf('_test.sol') > 0 && c.regexIndexOf(s) < 0) {
if (foundpath.indexOf('_test.sol') > 0 && c.regexIndexOf(s) < 0) {
c = c.replace(/(pragma solidity \^?\d+\.\d+\.\d+;)/, '$1\nimport \'remix_tests.sol\';')
}
sources[foundpath] = { content: c }

Loading…
Cancel
Save