Skip to content

Commit df88c3a

Browse files
gaurav5430alexkrolick
authored andcommitted
Fix anchor references in docs (#46)
* Update api-queries.md Fix anchor link to getByLabelText * Update example-intro.md Fixes links to render and fireEvent. Fixes #44
1 parent caf268f commit df88c3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const submitButton = getByText(container, /send data/i)
156156

157157
> **Note**
158158
>
159-
> See [`getByLabelText`](#getbylabeltext) for more details on how and when to
159+
> See [`getByLabelText`](#bylabeltext) for more details on how and when to
160160
> use the `selector` option
161161
162162
The `ignore` option accepts a query selector. If the

docs/react-testing-library/example-intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ test('loads and displays greeting', async () => {
8484

8585
### Arrange
8686

87-
The [`render`](./ecosystem-react-testing-library#render) method renders a React
87+
The [`render`](./api#render) method renders a React
8888
element into the DOM and returns utility functions for testing the component.
8989

9090
```jsx
@@ -96,7 +96,7 @@ const { getByText, getByTestId, container, asFragment } = render(
9696

9797
### Act
9898

99-
The [`fireEvent`](./api-events#fireEvent) method allows you to fire events to
99+
The [`fireEvent`](../api-events#fireEvent) method allows you to fire events to
100100
simulate user actions.
101101

102102
```jsx

0 commit comments

Comments
 (0)