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

Function beautify

lib/utils.js:365–368  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

363}
364
365export const beautify = function (code) {
366 const format = jsBeautify.js
367 return format(code, { indent_size: 2, space_in_empty_paren: true })
368}
369
370function shouldAppendBaseUrl(url) {
371 return !/^\w+\:\/\//.test(url)

Callers 4

finishFunction · 0.90
pageObjectFunction · 0.90
updateConfigFunction · 0.90
_executeRequestMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected