From 0e6de2c31dbf8c21277481f112e99c52b913940f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 27 Dec 2017 19:33:54 +0100 Subject: node_modules --- node_modules/ava/lib/logger.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'node_modules/ava/lib/logger.js') diff --git a/node_modules/ava/lib/logger.js b/node_modules/ava/lib/logger.js index 54bd23c94..e8edb120f 100644 --- a/node_modules/ava/lib/logger.js +++ b/node_modules/ava/lib/logger.js @@ -6,6 +6,7 @@ class Logger { this.reporter = reporter; autoBind(this); } + start(runStatus) { if (!this.reporter.start) { return; @@ -13,6 +14,7 @@ class Logger { this.write(this.reporter.start(runStatus), runStatus); } + reset(runStatus) { if (!this.reporter.reset) { return; @@ -20,9 +22,11 @@ class Logger { this.write(this.reporter.reset(runStatus), runStatus); } + test(test, runStatus) { this.write(this.reporter.test(test, runStatus), runStatus); } + unhandledError(err, runStatus) { if (!this.reporter.unhandledError) { return; @@ -30,6 +34,7 @@ class Logger { this.write(this.reporter.unhandledError(err, runStatus), runStatus); } + finish(runStatus) { if (!this.reporter.finish) { return; @@ -37,6 +42,7 @@ class Logger { this.write(this.reporter.finish(runStatus), runStatus); } + section() { if (!this.reporter.section) { return; @@ -44,6 +50,7 @@ class Logger { this.write(this.reporter.section()); } + clear() { if (!this.reporter.clear) { return false; @@ -52,6 +59,7 @@ class Logger { this.write(this.reporter.clear()); return true; } + write(str, runStatus) { if (typeof str === 'undefined') { return; @@ -59,6 +67,7 @@ class Logger { this.reporter.write(str, runStatus); } + stdout(data, runStatus) { if (!this.reporter.stdout) { return; @@ -66,6 +75,7 @@ class Logger { this.reporter.stdout(data, runStatus); } + stderr(data, runStatus) { if (!this.reporter.stderr) { return; @@ -73,6 +83,7 @@ class Logger { this.reporter.stderr(data, runStatus); } + exit(code) { process.exit(code); // eslint-disable-line unicorn/no-process-exit } -- cgit v1.2.3