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

style: fix text overflow #1907

Merged
merged 12 commits into from
Oct 18, 2022
2 changes: 1 addition & 1 deletion packages/hooks/src/useTextSelection/demo/demo3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default () => {
<div ref={ref} style={{ border: '1px solid', padding: 20 }}>
<p>Please swipe your mouse to select any text on this paragraph.</p>
</div>
<p>Result:{JSON.stringify(selection)}</p>
<p style={{ wordWrap: 'break-word' }}>Result:{JSON.stringify(selection)}</p>
</div>
);
};
9 changes: 0 additions & 9 deletions packages/use-url-state/src/__tests__/router.test.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import { act } from '@testing-library/react-hooks/dom';
import { setup } from '.';

const navigate = jest.fn();
jest.mock('react-router', () => {
return {
...jest.requireActual('react-router'),
useNavigate: () => navigate,
};
});

describe('React Router V6', () => {
it('useUrlState should be work', () => {
const res = setup(['/index']);
Expand All @@ -17,6 +9,5 @@ describe('React Router V6', () => {
});

expect(res.state).toMatchObject({ count: '1' });
expect(navigate).toBeCalledWith({ hash: '', search: 'count=1' }, { replace: false });
});
});
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.