gvwilson / sdxjs

Software Design by Example with JavaScript
Other
49 stars 12 forks source link

Fix mocha: command not found output bug #18

Closed juananpe closed 1 year ago

juananpe commented 1 year ago

This patch adds correct output after executing mocha to test check-existing-files.js findNew method.

Before applying the patch the output was looking weird:

image

After applying it, the PDF (and the HTML) version looks OK:

image

To reproduce mocha's output as closely as possible, this patch also needs to introduce a new unicode character to be parsed by LaTeX:

\newunicodechar{✓}{\checkmark}

gvwilson commented 1 year ago

thanks for this - i remember correcting it once before, but the fix must have gotten lost in a merge.

on a related note, do you know how to get the non-ASCII characters in the following output to display correctly? They are produced by the tree command:

├── vm-interactive.js
└── vm-source-map.js

I'm currently using tree --charset ASCII to produce this instead:

|-- vm-interactive.js
`-- vm-source-map.js

but it does look a little old-fashioned.

juananpe commented 1 year ago

I think that my new PR https://github.com/gvwilson/sdxjs/pull/19 includes the information that you were looking for.

gvwilson commented 1 year ago

thank you