@johnf/react-native-owl
Version:
Visual regression testing for React Native
19 lines (18 loc) • 529 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.get = exports.add = void 0;
/**
* A masic map of tracked elements, that we use to keep track of elements
* so that we can perform actions on them in future
*/
const trackedElements = {};
const get = ID => trackedElements[ID];
exports.get = get;
const add = (logger, ID, data) => {
trackedElements[ID] = data;
logger.info(`[OWL - Tracker] Tracking element with ${ID}`);
};
exports.add = add;
//# sourceMappingURL=trackedElements.js.map