-
Notifications
You must be signed in to change notification settings - Fork 23
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
test: add unit test for chat history page #55
test: add unit test for chat history page #55
Conversation
12e19c4
to
b9f07db
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/agent-framework #55 +/- ##
============================================================
+ Coverage 48.75% 58.99% +10.23%
============================================================
Files 46 46
Lines 1087 1090 +3
Branches 250 251 +1
============================================================
+ Hits 530 643 +113
+ Misses 548 440 -108
+ Partials 9 7 -2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Lin Wang <[email protected]>
Signed-off-by: Lin Wang <[email protected]>
Signed-off-by: Lin Wang <[email protected]>
b9f07db
to
52e5ab5
Compare
); | ||
|
||
expect(onChatHistoryTitleClickMock).not.toHaveBeenCalled(); | ||
act(() => { |
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.
Are these act
necessary in these cases? I thought we only need act when the operation causes state change which end up with updating the component tree.
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.
Agree with you. The act
is unnecessary here. Will remove them.
Signed-off-by: Lin Wang <[email protected]>
634053e
into
opensearch-project:feature/agent-framework
* test: add unit test for chst history page Signed-off-by: Lin Wang <[email protected]> * test: add unit tests for chat history list Signed-off-by: Lin Wang <[email protected]> * test: add unit tests for chat history search list Signed-off-by: Lin Wang <[email protected]> * test: remove unnecessary act Signed-off-by: Lin Wang <[email protected]> --------- Signed-off-by: Lin Wang <[email protected]>
Description
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.