MCPcopy
hub / github.com/ether/etherpad / append

Function append

src/tests/frontend/runner.js:135–139  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

133
134 const $console = $('#console');
135 const append = (text) => {
136 // Indent each line.
137 const lines = text.split('\n').map((line) => ' '.repeat(level * 2) + line);
138 $console.append(document.createTextNode(`${lines.join('\n')}\n`));
139 };
140
141 const total = runner.total;
142 runner.on('end', () => {

Callers 1

customRunnerFunction · 0.85

Calls 2

mapMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected