har-to-k6
Version:
Convert LI-HAR to k6 script
17 lines (14 loc) • 418 B
JavaScript
const { createChecksIndexes } = require('../utils/indexes')
const { createChecksPath } = require('../utils/path')
function createErrorParamsForCheckVariants({
name,
indexes: [entryIndex, checkIndex],
path = '',
}) {
return {
name,
path: createChecksPath(entryIndex, checkIndex, path),
indexes: createChecksIndexes(entryIndex, checkIndex),
}
}
module.exports = createErrorParamsForCheckVariants