@johnf/react-native-owl
Version:
Visual regression testing for React Native
13 lines (12 loc) • 404 B
JavaScript
;
/**
* 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 = {};
export const get = ID => trackedElements[ID];
export const add = (logger, ID, data) => {
trackedElements[ID] = data;
logger.info(`[OWL - Tracker] Tracking element with ${ID}`);
};
//# sourceMappingURL=trackedElements.js.map