Merge pull request #778 from ethereum/standardFix

Throw if standard test fails
pull/1/head
yann300 7 years ago committed by GitHub
commit aec718b6fc
  1. 2
      package.json
  2. 2
      src/app/panels/terminal.js

@ -152,7 +152,7 @@
"serve": "execr --silent http-server .", "serve": "execr --silent http-server .",
"sourcemap": "exorcist --root ../ build/app.js.map > build/app.js", "sourcemap": "exorcist --root ../ build/app.js.map > build/app.js",
"start": "npm-run-all -lpr serve watch onchange", "start": "npm-run-all -lpr serve watch onchange",
"test": "standard; npm run csslint; node test/index.js", "test": "npm run csslint; standard && node test/index.js",
"test-browser": "npm-run-all -lpr selenium downloadsolc make-mock-compiler serve browsertest", "test-browser": "npm-run-all -lpr selenium downloadsolc make-mock-compiler serve browsertest",
"watch": "watchify src/index.js -dv -p browserify-reload -o build/app.js" "watch": "watchify src/index.js -dv -p browserify-reload -o build/app.js"
} }

@ -575,7 +575,7 @@ class Terminal {
command(args, scopedCommands, el => append(null, args, blockify(el))) command(args, scopedCommands, el => append(null, args, blockify(el)))
} }
var help = typeof command.help === 'string' ? command.help : [ var help = typeof command.help === 'string' ? command.help : [
`// no help available for:`, '// no help available for:',
`terminal.commands.${name}(...)` `terminal.commands.${name}(...)`
].join('\n') ].join('\n')
self.commands[name].toString = _ => { return help } self.commands[name].toString = _ => { return help }

Loading…
Cancel
Save