Skip to content

Commit

Permalink
doc: add missing new lines to custom test reporter examples
Browse files Browse the repository at this point in the history
PR-URL: #54152
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: Harshitha K P <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Jake Yuesong Li <[email protected]>
  • Loading branch information
EddieAbbondanzio authored and targos committed Oct 2, 2024
1 parent 2acaeab commit 8d41bb9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -1047,13 +1047,13 @@ export default async function * customReporter(source) {
for await (const event of source) {
switch (event.type) {
case 'test:dequeue':
yield `test ${event.data.name} dequeued`;
yield `test ${event.data.name} dequeued\n`;
break;
case 'test:enqueue':
yield `test ${event.data.name} enqueued`;
yield `test ${event.data.name} enqueued\n`;
break;
case 'test:watch:drained':
yield 'test watch queue drained';
yield 'test watch queue drained\n';
break;
case 'test:start':
yield `test ${event.data.name} started\n`;
Expand All @@ -1065,7 +1065,7 @@ export default async function * customReporter(source) {
yield `test ${event.data.name} failed\n`;
break;
case 'test:plan':
yield 'test plan';
yield 'test plan\n';
break;
case 'test:diagnostic':
case 'test:stderr':
Expand All @@ -1087,13 +1087,13 @@ module.exports = async function * customReporter(source) {
for await (const event of source) {
switch (event.type) {
case 'test:dequeue':
yield `test ${event.data.name} dequeued`;
yield `test ${event.data.name} dequeued\n`;
break;
case 'test:enqueue':
yield `test ${event.data.name} enqueued`;
yield `test ${event.data.name} enqueued\n`;
break;
case 'test:watch:drained':
yield 'test watch queue drained';
yield 'test watch queue drained\n';
break;
case 'test:start':
yield `test ${event.data.name} started\n`;
Expand Down

0 comments on commit 8d41bb9

Please sign in to comment.