MCPcopy Create free account
hub / github.com/garris/BackstopJS / ensureViewportLabel

Function ensureViewportLabel

core/util/createBitmaps.js:19–27  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

17}
18
19function ensureViewportLabel (config) {
20 if (typeof config.viewports === 'object') {
21 config.viewports.forEach(function (viewport) {
22 if (!viewport.label) {
23 viewport.label = viewport.name;
24 }
25 });
26 }
27}
28
29function decorateConfigForCapture (config, isReference) {
30 let configJSON;

Callers 1

decorateConfigForCaptureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected