mirror of
https://github.com/tests-always-included/mo.git
synced 2025-11-19 23:34:32 +01:00
Fixing newlines in shell scripts
This helps the partials tests pass
This commit is contained in:
@@ -4,7 +4,10 @@ var async, exec, fs, summary, specFiles;
|
||||
|
||||
function makeShellString(value) {
|
||||
if (typeof value === 'string') {
|
||||
return JSON.stringify(value);
|
||||
// Newlines are tricky
|
||||
return value.split(/\n/).map(function (chunk) {
|
||||
return JSON.stringify(chunk);
|
||||
}).join('"\n"');
|
||||
}
|
||||
|
||||
if (typeof value === 'number') {
|
||||
|
||||
Reference in New Issue
Block a user