This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns and object with `data-test-id` as key and attributeValue as | |
* associated value to the key | |
* @function | |
* @name getDataTestAttribute | |
* | |
* @param {string} attributeValue | |
* @returns {object} | |
*/ | |
export function getDataTestAttribute(attributeValue) { | |
return process.env.NODE_ENV !== "production" | |
? { | |
"data-test-id": attributeValue, | |
} | |
: {}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment