Unexpected Whitespace in Multiline Strings - Node.js

Problem description:
There seems to be additional whitespace added to multi-line strings when running in nodejs.
This only occurs when running unit tests, executing the index.js file directly does not behave the same way

Expected behavior:
Unit test should pass

Actual behavior:
Unit test fails due to added whitespace in multiline string

Steps to reproduce:
Run the unit test

Bug appears at this link:
https://replit.com/@dustinyschild/Incorrect-Multi-Line-String-Parsing

Browser/OS/Device:
Google Chrome
Windows 10 & MacOS Ventura