Skip to content

Move isShutdown to state expectations #2102

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

Merged
merged 2 commits into from
Aug 21, 2019
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

I would like to move the isShutdown to the Spec test state expectations. That should help me in my futile attempts to auto-generate spec tests.

Copy link
Contributor

@mikelehen mikelehen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

export async function clearTestPersistence(): Promise<void> {
await IndexedDbPersistence.clearPersistence(TEST_PERSISTENCE_PREFIX);
export function clearTestPersistence(): Promise<void> {
return IndexedDbPersistence.clearPersistence(TEST_PERSISTENCE_PREFIX);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this is a quiz on how async/await works, but I'm stumped... Does your change do anything?

Copy link
Contributor Author

@schmidt-sebastian schmidt-sebastian Aug 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No... but I find it weird to use async in a method that only uses a single Promise in its return statement. I can turn it into a quiz though!

@schmidt-sebastian schmidt-sebastian merged commit 1dbf3bc into master Aug 21, 2019
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/moveshutdown branch August 21, 2019 21:41
@firebase firebase locked and limited conversation to collaborators Oct 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants