summaryrefslogtreecommitdiff
path: root/test/parallel/test-console-instance.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-console-instance.js')
-rw-r--r--test/parallel/test-console-instance.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/parallel/test-console-instance.js b/test/parallel/test-console-instance.js
index aa35afc648..2fd07ac412 100644
--- a/test/parallel/test-console-instance.js
+++ b/test/parallel/test-console-instance.js
@@ -28,15 +28,15 @@ const Console = require('console').Console;
const out = new Stream();
const err = new Stream();
-// ensure the Console instance doesn't write to the
-// process' "stdout" or "stderr" streams
+// Ensure the Console instance doesn't write to the
+// process' "stdout" or "stderr" streams.
process.stdout.write = process.stderr.write = common.mustNotCall();
-// make sure that the "Console" function exists
+// Make sure that the "Console" function exists.
assert.strictEqual('function', typeof Console);
-// make sure that the Console constructor throws
-// when not given a writable stream instance
+// Make sure that the Console constructor throws
+// when not given a writable stream instance.
common.expectsError(
() => { new Console(); },
{
@@ -46,7 +46,7 @@ common.expectsError(
}
);
-// Console constructor should throw if stderr exists but is not writable
+// Console constructor should throw if stderr exists but is not writable.
common.expectsError(
() => {
out.write = () => {};
@@ -77,7 +77,7 @@ out.write = common.mustCall((d) => {
c.dir({ foo: 1 });
-// ensure that the console functions are bound to the console instance
+// Ensure that the console functions are bound to the console instance.
let called = 0;
out.write = common.mustCall((d) => {
called++;
@@ -86,7 +86,7 @@ out.write = common.mustCall((d) => {
[1, 2, 3].forEach(c.log);
-// Console() detects if it is called without `new` keyword
+// Console() detects if it is called without `new` keyword.
Console(out, err);
// Instance that does not ignore the stream errors.