(stats)
| 19949 | * @param {SummaryImageOptions} options (optional) addition image attributes |
| 19950 | * |
| 19951 | * @returns {Summary} summary instance |
| 19952 | */ |
| 19953 | addImage(src, alt, options) { |
| 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)); |
no outgoing calls
no test coverage detected