MCPcopy
hub / github.com/codeceptjs/CodeceptJS / transformTable

Function transformTable

lib/mocha/gherkin.js:166–177  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

164}
165
166function transformTable(table) {
167 let str = ''
168 for (const id in table.rows) {
169 const cells = table.rows[id].cells
170 str += cells
171 .map(c => c.value)
172 .map(c => c.padEnd(15))
173 .join(' | ')
174 str += '\n'
175 }
176 return str
177}
178function addExampleInTable(exampleSteps, placeholders) {
179 const steps = JSON.parse(JSON.stringify(exampleSteps))
180 for (const placeholder in placeholders) {

Callers 1

runStepsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected