Created
November 21, 2019 18:18
-
-
Save xadamxk/92693c916309c7ea46cec5398153a8ae to your computer and use it in GitHub Desktop.
Async Promise Snippet
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
Promise.all(elementJson.map(async (test) => { | |
return getTestElementValue(testId, test.id); | |
})).then(array => { | |
groupArrayByProperty(elementJson.map(function (x, i) { | |
x.element = array[i]; | |
return x; | |
}), 'path', 0, testId, stateKey, self, testInfo) | |
}); |
Author
xadamxk
commented
Nov 21, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment