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

Refactor lib/__tests__/integration.test.js #5284

Merged
merged 2 commits into from May 12, 2021
Merged

Conversation

ybiquitous
Copy link
Member

@ybiquitous ybiquitous commented May 12, 2021

  • Reduce callbacks as much as possible via async/await syntax. (see also https://jestjs.io/docs/asynchronous)
  • Unify indentation of tested CSS-like code for readability.
  • Add a utility function to reduce duplication.

Which issue, if any, is this issue related to?

A part of #4881

Is there anything in the PR that needs further explanation?

It's easier to review the diffs if using "Hide whitespace changes".

- Reduce callbacks as much as possible via `async/await` syntax. (see also <https://jestjs.io/docs/asynchronous>)
- Unify indentation of tested CSS-like code for readability.
- Add a utility function to reduce duplication.
@ybiquitous
Copy link
Member Author

I've re-indented template literals (2a95354) following #5287 (review).

@jeddy3 jeddy3 merged commit 5434bd1 into master May 12, 2021
@jeddy3 jeddy3 deleted the refactor-integration.test.js branch May 12, 2021 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants