assertthat
Version:
assertthat provides fluent TDD.
16 lines (15 loc) • 498 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.prepareSimple = void 0;
const maximumFormattingDepth_1 = require("../../constants/maximumFormattingDepth");
const prepareSimple = function (content, depth) {
return `${content}`.
split('\n').
map((line) => {
if (depth >= maximumFormattingDepth_1.maximumFormattingDepth) {
return line;
}
return ` ${line}`;
});
};
exports.prepareSimple = prepareSimple;