From 152b85a3920baa055b8a25aef2b35b7dbaee6e11 Mon Sep 17 00:00:00 2001 From: David Chambers Date: Wed, 10 Jun 2020 21:03:58 +0200 Subject: [PATCH] tweak doctest formatting --- lib/doctest.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/doctest.js b/lib/doctest.js index 0b221a6c..6f0a7da8 100644 --- a/lib/doctest.js +++ b/lib/doctest.js @@ -280,11 +280,13 @@ function processLine( // . '!': false, // . input: { // . value: '6 * 7', -// . loc: {start: {line: 1, column: 0}, end: {line: 1, column: 10}}}, +// . loc: {start: {line: 1, column: 0}, end: {line: 1, column: 10}} +// . }, // . output: [{ // . channel: null, // . value: '42', -// . loc: {start: {line: 2, column: 0}, end: {line: 2, column: 5}}}] +// . loc: {start: {line: 2, column: 0}, end: {line: 2, column: 5}} +// . }] // . }] function transformComments(options, comments) { var result = comments.reduce (function(accum, comment, commentIndex) {