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

add unit test for useChatActions hook #69

Merged

Conversation

ruanyl
Copy link
Member

@ruanyl ruanyl commented Dec 13, 2023

Description

Describe what this change achieves.

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.

Copy link

codecov bot commented Dec 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7695943) 74.29% compared to head (8a68ab0) 82.12%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #69      +/-   ##
==========================================
+ Coverage   74.29%   82.12%   +7.83%     
==========================================
  Files          43       43              
  Lines        1023     1024       +1     
  Branches      245      238       -7     
==========================================
+ Hits          760      841      +81     
+ Misses        261      182      -79     
+ Partials        2        1       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

public/hooks/use_chat_actions.test.tsx Show resolved Hide resolved
);
});

it('should handle regenerate error', async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shall we add test case for regenerate abort?

@ruanyl ruanyl changed the base branch from feature/agent-framework to main December 14, 2023 01:16
@ruanyl ruanyl force-pushed the unit-test-use-chat-actions-hook branch from 027a7d9 to a5eac23 Compare December 14, 2023 07:45
@ruanyl ruanyl merged commit 866a679 into opensearch-project:main Dec 18, 2023
8 of 10 checks passed
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.

2 participants