Skip to content

Fix readdirpromise #30

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jpeters5392
Copy link

  • readdirPromise was emitting the end event prior to the promise resolving so the emitted list of files was always going to be an empty array
  • Files excluded by middleware were still getting included in the resolved promise's value, so there is now a filter step prior to resolving that filters out excluded values
  • fixed naming of some tests since it seemed like there were some copy/paste values

Joel Peterson added 2 commits January 1, 2019 14:14
* it was emitting the end event prior to the promise completing so the emitted files was an empty array
* excluded files were still getting returned in the resolved promise's value, so they are now filtered out prior to completing the promise
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

Successfully merging this pull request may close these issues.

1 participant