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

♻️ Async-ify and clean up test-visibility-states.js #37494

Merged
merged 6 commits into from
Jan 27, 2022

Conversation

rcebulko
Copy link
Contributor

As part of #37129, I'm going to be adding tests to this file. It's bit-rotted a bit, with a few different conventions for doing the same thing. This migrates the file to use async-await in most places (instead of just a few) and generally standardizes the format/vertical spacing of the tests themselves.

@rcebulko rcebulko requested a review from samouri January 26, 2022 21:31
Copy link
Contributor

@rileyajones rileyajones left a comment

Choose a reason for hiding this comment

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

👏 It's always amazing how much a more legible code becomes when a bit of indentation is removed.

@rcebulko rcebulko closed this Jan 27, 2022
@rcebulko rcebulko reopened this Jan 27, 2022
@rcebulko rcebulko closed this Jan 27, 2022
@rcebulko rcebulko reopened this Jan 27, 2022
@rcebulko rcebulko removed the cla: yes label Jan 27, 2022
@rcebulko rcebulko merged commit d7c7629 into ampproject:main Jan 27, 2022
@rcebulko rcebulko deleted the sp-viz-states-tests branch January 28, 2022 16:20
samouri pushed a commit to samouri/amphtml that referenced this pull request Feb 2, 2022
* async-await-ify beforeEach

* async-await-ify test fns

* async-await-ify test beforeEach

* Mirror `changeVisibility` helper

* vertical whitespace

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

Successfully merging this pull request may close these issues.

3 participants