From 0a86129abedcdc8133f9a523f00fbd3a24910918 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 7 Sep 2017 19:55:19 +0200 Subject: [PATCH 1/3] add standard error --- src/app/execution/txLogger.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/execution/txLogger.js b/src/app/execution/txLogger.js index bc5b0d0468..36d13b14c7 100644 --- a/src/app/execution/txLogger.js +++ b/src/app/execution/txLogger.js @@ -44,6 +44,8 @@ class TxLogger { } } + + function log (self, tx, api) { var resolvedTransaction = api.resolvedTransaction(tx.hash) if (resolvedTransaction) { From 71df9019f6fb97a1748b1cda0e4df1f1d85b0fb6 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 8 Sep 2017 10:14:34 +0200 Subject: [PATCH 2/3] throw if standard test fails --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7cd736f239..6ea18a8e50 100644 --- a/package.json +++ b/package.json @@ -152,7 +152,7 @@ "serve": "execr --silent http-server .", "sourcemap": "exorcist --root ../ build/app.js.map > build/app.js", "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", "watch": "watchify src/index.js -dv -p browserify-reload -o build/app.js" } From 9489a3a87faf621c33ea0b12256b6b2dd8e6a26d Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 8 Sep 2017 13:20:02 +0200 Subject: [PATCH 3/3] fix standard --- src/app/execution/txLogger.js | 2 -- src/app/panels/terminal.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/execution/txLogger.js b/src/app/execution/txLogger.js index 36d13b14c7..bc5b0d0468 100644 --- a/src/app/execution/txLogger.js +++ b/src/app/execution/txLogger.js @@ -44,8 +44,6 @@ class TxLogger { } } - - function log (self, tx, api) { var resolvedTransaction = api.resolvedTransaction(tx.hash) if (resolvedTransaction) { diff --git a/src/app/panels/terminal.js b/src/app/panels/terminal.js index aebf4b2392..7f764af428 100644 --- a/src/app/panels/terminal.js +++ b/src/app/panels/terminal.js @@ -575,7 +575,7 @@ class Terminal { command(args, scopedCommands, el => append(null, args, blockify(el))) } var help = typeof command.help === 'string' ? command.help : [ - `// no help available for:`, + '// no help available for:', `terminal.commands.${name}(...)` ].join('\n') self.commands[name].toString = _ => { return help }