jest-cucumber
Version:
Execute Gherkin scenarios in Jest
18 lines • 520 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.indent = void 0;
exports.indent = function (stringToIndent, tabsToIndent) {
var tabs = '';
for (var i = 0; i < tabsToIndent; i++) {
tabs = tabs + '\t';
}
return stringToIndent.split('\n').map(function (line) {
if (line !== '') {
return "" + tabs + line + "\n";
}
else {
return '\n';
}
}).join('');
};
//# sourceMappingURL=utils.js.map