MCPcopy Create free account
hub / github.com/angular/dev-infra / __awaiter3

Function __awaiter3

github-actions/browserstack/set-browserstack-env.js:19956–19982  ·  view source on GitHub ↗
(thisArg, _arguments, P, generator)

Source from the content-addressed store, hash-verified

19954 const { width, height } = options || {};
19955 const attrs = Object.assign(Object.assign({}, width && { width }), height && { height });
19956 const element = this.wrap("img", null, Object.assign({ src, alt }, attrs));
19957 return this.addRaw(element).addEOL();
19958 }
19959 /**
19960 * Adds an HTML section heading element
19961 *
19962 * @param {string} text heading text
19963 * @param {number | string} [level=1] (optional) the heading level, default: 1
19964 *
19965 * @returns {Summary} summary instance
19966 */
19967 addHeading(text, level) {
19968 const tag = `h${level}`;
19969 const allowedTag = ["h1", "h2", "h3", "h4", "h5", "h6"].includes(tag) ? tag : "h1";
19970 const element = this.wrap(allowedTag, text);
19971 return this.addRaw(element).addEOL();
19972 }
19973 /**
19974 * Adds an HTML thematic break (<hr>) to the summary buffer
19975 *
19976 * @returns {Summary} summary instance
19977 */
19978 addSeparator() {
19979 const element = this.wrap("hr", null);
19980 return this.addRaw(element).addEOL();
19981 }
19982 /**
19983 * Adds an HTML line break (<br>) to the summary buffer
19984 *
19985 * @returns {Summary} summary instance

Callers 2

whichFunction · 0.70
findInPathFunction · 0.70

Calls 3

stepFunction · 0.70
nextMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected