Added some tests

This commit is contained in:
2021-06-23 22:30:45 +02:00
parent 24f897e907
commit 3d3d7fae48
3796 changed files with 218744 additions and 3 deletions

22
tests/node_modules/tap-spec/lib/utils/l-trim-list.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
var _ = require('lodash');
module.exports = function (lines) {
var leftPadding;
// Get minimum padding count
_.each(lines, function (line) {
var spaceLen = line.match(/^\s+/)[0].length;
if (leftPadding === undefined || spaceLen < leftPadding) {
leftPadding = spaceLen;
}
});
// Strip padding at beginning of line
return _.map(lines, function (line) {
return line.slice(leftPadding);
});
}