The Wayback Machine - https://web.archive.org/web/20201218223048/https://github.com/expressjs/session/pull/635
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

Add promise support for sessionStore functions #635

Open
wants to merge 12 commits into
base: master
from

Conversation

@brandonmanke
Copy link

@brandonmanke brandonmanke commented Feb 24, 2019

Potential solution to #607.

I can add some more tests to improve coverage if necessary.

@brandonmanke brandonmanke force-pushed the brandonmanke:session-store-promise branch from 6e29589 to ca343bd Feb 24, 2019
@brandonmanke brandonmanke force-pushed the brandonmanke:session-store-promise branch from ca343bd to 44cc8d1 Feb 24, 2019
@dougwilson dougwilson force-pushed the brandonmanke:session-store-promise branch from 44cc8d1 to 63f0b88 Feb 24, 2019
@dougwilson dougwilson force-pushed the brandonmanke:session-store-promise branch from 63f0b88 to c687d5a Feb 24, 2019
@brandonmanke
Copy link
Author

@brandonmanke brandonmanke commented Feb 27, 2019

@dougwilson I can add the should error without callback test for .reload() if that is ok? Also how would you recommend explicitly testing for errors with and without callbacks? Since the tests themselves will be almost identical.

@dougwilson
Copy link
Member

@dougwilson dougwilson commented Feb 27, 2019

Hey, so I added a couple more conditions on Monday to further bump the coverage to help out 👍Feel free to add some new ones as well; I just pushed up without the rebase on Monday just in case you were working on some as well.

I took a look at the coveralls config and it's set only to care about line coverage. So I wouldn't really worry about the reject branches to get it landed. If you want to add them anyway as an exercise, I would just copy-paste the tests at this time.

@brandonmanke
Copy link
Author

@brandonmanke brandonmanke commented Mar 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.