Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetinaXD committed Jul 12, 2024
1 parent f95a0c9 commit 530c75b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-moons-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-demo': patch
---

fix: unit test
2 changes: 1 addition & 1 deletion examples/react/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import '@nordhealth/css';
import { bootSilentFactory } from 'alova/client';
import React from 'react';
import ReactDOM from 'react-dom/client';
import Layout from './Layout';
import { alova } from './api';
import './index.css';
import Layout from './layout';

ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/test/react/useRetriableRequest.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ describe('react => useRetriableRequest', () => {
act(() => {
fireEvent.click(screen.getByRole('btnStop'));
});
expect(screen.getByRole('error')).toHaveTextContent('there are no requests being retried');
expect(screen.getByRole('error')).toHaveTextContent('there is no requests being retried');
});

test('should throws stop error when stop in requseting', async () => {
Expand Down

0 comments on commit 530c75b

Please sign in to comment.