Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verifyAllCombinations() functions not working correctly with asynchronous code #191

Open
Hugo-COLLIN opened this issue May 12, 2024 · 0 comments

Comments

@Hugo-COLLIN
Copy link

Hugo-COLLIN commented May 12, 2024

verifyAllCombinations() functions are not managing async, it can only return [object Promise] when the passed function is async.

Example:

Code:

    const pagesOptions = [[], [y,y], [x,y,z]];

    verifyAllCombinations1(async (option) => {
      await asynchronousTreatment();
      return option;
    }, pagesOptions);

Actual:

[] => [object Promise]
[x,y] => [object Promise]
[x,y,z] => [object Promise]

Expected:

[] =>
[x,y] => x,y
[x,y,z] => x,y,z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant