-
Notifications
You must be signed in to change notification settings - Fork 13
test: remove usage of done function part 2 #1390
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
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @spliffone, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on modernizing the asynchronous testing patterns within the codebase. It systematically migrates existing tests that relied on the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request correctly replaces the Jasmine done function with async/await for handling asynchronous tests. This is a great improvement for test readability and reliability. I've noticed a recurring pattern of using new Promise with a counter to wait for observables. While this works, it can be further simplified by using RxJS operators like firstValueFrom, zip, take, and toArray. I've added specific suggestions to refactor these tests to be more concise and idiomatic with RxJS.
...ects/dashboards-ng/src/components/flexible-dashboard/si-flexible-dashboard.component.spec.ts
Outdated
Show resolved
Hide resolved
projects/dashboards-ng/src/components/gridstack-wrapper/si-gridstack-wrapper.component.spec.ts
Outdated
Show resolved
Hide resolved
projects/dashboards-ng/src/components/widget-catalog/si-widget-catalog.component.spec.ts
Outdated
Show resolved
Hide resolved
projects/dashboards-ng/src/components/widget-catalog/si-widget-catalog.component.spec.ts
Outdated
Show resolved
Hide resolved
projects/dashboards-ng/src/components/widget-host/si-widget-host.component.spec.ts
Outdated
Show resolved
Hide resolved
.../components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component.spec.ts
Outdated
Show resolved
Hide resolved
.../components/widget-instance-editor-dialog/si-widget-instance-editor-dialog.component.spec.ts
Outdated
Show resolved
Hide resolved
|
Documentation. Coverage Reports: |
942a673 to
7684aa8
Compare
7684aa8 to
c0c2f42
Compare
Uh oh!
There was an error while loading. Please reload this page.