Skip to content

Commit cbc4894

Browse files
committed
Manually fix capitalization issues
1 parent 88d26c3 commit cbc4894

File tree

8 files changed

+123
-123
lines changed

8 files changed

+123
-123
lines changed

docs/angular-testing-library/intro.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ npm install --save-dev @testing-library/angular
1515

1616
## Usage
1717

18-
counter.component.ts
19-
2018
```typescript
19+
// counter.component.ts
20+
2121
@Component({
2222
selector: 'counter',
2323
template: `
@@ -39,9 +39,9 @@ export class CounterComponent {
3939
}
4040
```
4141

42-
counter.component.spec.ts
43-
4442
```typescript
43+
// counter.component.spec.ts
44+
4545
import { render } from '@testing-library/angular'
4646
import CounterComponent from './counter.component.ts'
4747

docs/bs-react-testing-library/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The below examples use
3535
[`bs-webapi`](https://github.com/reasonml-community/bs-webapi-incubator) to help
3636
with typings and creating events.
3737

38-
### getByText
38+
### `getByText`
3939

4040
```reason
4141
/* __tests__/example_test.re */

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _or_
4444

4545
## Other Dependencies
4646

47-
### bs-platform
47+
### `bs-platform`
4848

4949
This is what [BuckleScript][bs] uses to compile the [Reason][re] code to JS. If
5050
it is not in your project you can install it like so:
@@ -53,7 +53,7 @@ it is not in your project you can install it like so:
5353
npm install --save-dev bs-platform
5454
```
5555

56-
### bs-jest
56+
### `bs-jest`
5757

5858
This is the recommended test runner and is a wrapper around Jest. All of the
5959
examples here will be using it.

docs/cypress-testing-library/intro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import '@testing-library/cypress/add-commands';
2424

2525
## With TypeScript
2626

27-
Typings are defined under @testing-library/cypress/typings, and should be added
28-
as follows in tsconfig.json:
27+
Typings are defined under `@testing-library/cypress/typings`, and should be
28+
added as follows in `tsconfig.json`:
2929

3030
```json
3131
{
@@ -35,7 +35,7 @@ as follows in tsconfig.json:
3535
}
3636
```
3737

38-
or if tsconfig.json has a `baseUrl` of `../node_modules` as recommended in the
38+
or if `tsconfig.json` has a `baseUrl` of `../node_modules` as recommended in the
3939
official Cypress documentation use:
4040

4141
```json

docs/dom-testing-library/api-queries.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@ title: Queries
88
> `getBy` queries are shown by default in the [query documentation](#queries)
99
> below.
1010
11-
### getBy
11+
### `getBy`
1212

1313
`getBy*` queries return the first matching node for a query, and throw an error
1414
if no elements match or if more than one match is found (use `getAllBy`
1515
instead).
1616

17-
### getAllBy
17+
### `getAllBy`
1818

1919
`getAllBy*` queries return an array of all matching nodes for a query, and throw
2020
an error if no elements match.
2121

22-
### queryBy
22+
### `queryBy`
2323

2424
`queryBy*` queries return the first matching node for a query, and return `null`
2525
if no elements match. This is useful for asserting an element that is not
2626
present. This throws if more than one match is found (use `queryAllBy` instead).
2727

28-
### queryAllBy
28+
### `queryAllBy`
2929

3030
`queryAllBy*` queries return an array of all matching nodes for a query, and
3131
return an empty array (`[]`) if no elements match.
3232

33-
### findBy
33+
### `findBy`
3434

3535
`findBy*` queries return a promise which resolves when an element is found which
3636
matches the given query. The promise is rejected if no element is found or if
@@ -42,7 +42,7 @@ to find more than one element, then use `findAllBy`.
4242
> accept the `waitForElement` options as the last argument. (i.e.
4343
> `findByText(container, 'text', queryOptions, waitForElementOptions)`)
4444
45-
### findAllBy
45+
### `findAllBy`
4646

4747
`findAllBy*` queries return a promise which resolves to an array of elements
4848
when any elements are found which match the given query. The promise is rejected

docs/dom-testing-library/cheatsheet.md

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -19,61 +19,61 @@ See [Which query should I use?](guide-which-query.md)
1919
| **queryAllBy** | [] | array | array | No |
2020

2121
- **ByLabelText** find by label or aria-label text content
22-
- getByLabelText
23-
- queryByLabelText
24-
- getAllByLabelText
25-
- queryAllByLabelText
26-
- findByLabelText
27-
- findAllByLabelText
22+
- `getByLabelText`
23+
- `queryByLabelText`
24+
- `getAllByLabelText`
25+
- `queryAllByLabelText`
26+
- `findByLabelText`
27+
- `findAllByLabelText`
2828
- **ByPlaceholderText** find by input placeholder value
29-
- getByPlaceholderText
30-
- queryByPlaceholderText
31-
- getAllByPlaceholderText
32-
- queryAllByPlaceholderText
33-
- findByPlaceholderText
34-
- findAllByPlaceholderText
29+
- `getByPlaceholderText`
30+
- `queryByPlaceholderText`
31+
- `getAllByPlaceholderText`
32+
- `queryAllByPlaceholderText`
33+
- `findByPlaceholderText`
34+
- `findAllByPlaceholderText`
3535
- **ByText** find by element text content
36-
- getByText
37-
- queryByText
38-
- getAllByText
39-
- queryAllByText
40-
- findByText
41-
- findAllByText
36+
- `getByText`
37+
- `queryByText`
38+
- `getAllByText`
39+
- `queryAllByText`
40+
- `findByText`
41+
- `findAllByText`
4242
- **ByDisplayValue** find by form element current value
43-
- getByDisplayValue
44-
- queryByDisplayValue
45-
- getAllByDisplayValue
46-
- queryAllByDisplayValue
47-
- findByDisplayValue
48-
- findAllByDisplayValue
43+
- `getByDisplayValue`
44+
- `queryByDisplayValue`
45+
- `getAllByDisplayValue`
46+
- `queryAllByDisplayValue`
47+
- `findByDisplayValue`
48+
- `findAllByDisplayValue`
4949
- **ByAltText** find by img alt attribute
50-
- getByAltText
51-
- queryByAltText
52-
- getAllByAltText
53-
- queryAllByAltText
54-
- findByAltText
55-
- findAllByAltText
50+
- `getByAltText`
51+
- `queryByAltText`
52+
- `getAllByAltText`
53+
- `queryAllByAltText`
54+
- `findByAltText`
55+
- `findAllByAltText`
5656
- **ByTitle** find by title attribute or svg title tag
57-
- getByTitle
58-
- queryByTitle
59-
- getAllByTitle
60-
- queryAllByTitle
61-
- findByTitle
62-
- findAllByTitle
57+
- `getByTitle`
58+
- `queryByTitle`
59+
- `getAllByTitle`
60+
- `queryAllByTitle`
61+
- `findByTitle`
62+
- `findAllByTitle`
6363
- **ByRole** find by aria role
64-
- getByRole
65-
- queryByRole
66-
- getAllByRole
67-
- queryAllByRole
68-
- findByRole
69-
- findAllByRole
64+
- `getByRole`
65+
- `queryByRole`
66+
- `getAllByRole`
67+
- `queryAllByRole`
68+
- `findByRole`
69+
- `findAllByRole`
7070
- **ByTestId** find by data-testid attribute
71-
- getByTestId
72-
- queryByTestId
73-
- getAllByTestId
74-
- queryAllByTestId
75-
- findByTestId
76-
- findAllByTestId
71+
- `getByTestId`
72+
- `queryByTestId`
73+
- `getAllByTestId`
74+
- `queryAllByTestId`
75+
- `findByTestId`
76+
- `findAllByTestId`
7777

7878
## Async
7979

docs/react-testing-library/cheatsheet.md

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -48,61 +48,61 @@ See [Which query should I use?](guide-which-query.md)
4848
| **queryAllBy** | [] | array | array | No |
4949

5050
- **ByLabelText** find by label or aria-label text content
51-
- getByLabelText
52-
- queryByLabelText
53-
- getAllByLabelText
54-
- queryAllByLabelText
55-
- findByLabelText
56-
- findAllByLabelText
51+
- `getByLabelText`
52+
- `queryByLabelText`
53+
- `getAllByLabelText`
54+
- `queryAllByLabelText`
55+
- `findByLabelText`
56+
- `findAllByLabelText`
5757
- **ByPlaceholderText** find by input placeholder value
58-
- getByPlaceholderText
59-
- queryByPlaceholderText
60-
- getAllByPlaceholderText
61-
- queryAllByPlaceholderText
62-
- findByPlaceholderText
63-
- findAllByPlaceholderText
58+
- `getByPlaceholderText`
59+
- `queryByPlaceholderText`
60+
- `getAllByPlaceholderText`
61+
- `queryAllByPlaceholderText`
62+
- `findByPlaceholderText`
63+
- `findAllByPlaceholderText`
6464
- **ByText** find by element text content
65-
- getByText
66-
- queryByText
67-
- getAllByText
68-
- queryAllByText
69-
- findByText
70-
- findAllByText
65+
- `getByText`
66+
- `queryByText`
67+
- `getAllByText`
68+
- `queryAllByText`
69+
- `findByText`
70+
- `findAllByText`
7171
- **ByDisplayValue** find by form element current value
72-
- getByDisplayValue
73-
- queryByDisplayValue
74-
- getAllByDisplayValue
75-
- queryAllByDisplayValue
76-
- findByDisplayValue
77-
- findAllByDisplayValue
72+
- `getByDisplayValue`
73+
- `queryByDisplayValue`
74+
- `getAllByDisplayValue`
75+
- `queryAllByDisplayValue`
76+
- `findByDisplayValue`
77+
- `findAllByDisplayValue`
7878
- **ByAltText** find by img alt attribute
79-
- getByAltText
80-
- queryByAltText
81-
- getAllByAltText
82-
- queryAllByAltText
83-
- findByAltText
84-
- findAllByAltText
79+
- `getByAltText`
80+
- `queryByAltText`
81+
- `getAllByAltText`
82+
- `queryAllByAltText`
83+
- `findByAltText`
84+
- `findAllByAltText`
8585
- **ByTitle** find by title attribute or svg title tag
86-
- getByTitle
87-
- queryByTitle
88-
- getAllByTitle
89-
- queryAllByTitle
90-
- findByTitle
91-
- findAllByTitle
86+
- `getByTitle`
87+
- `queryByTitle`
88+
- `getAllByTitle`
89+
- `queryAllByTitle`
90+
- `findByTitle`
91+
- `findAllByTitle`
9292
- **ByRole** find by aria role
93-
- getByRole
94-
- queryByRole
95-
- getAllByRole
96-
- queryAllByRole
97-
- findByRole
98-
- findAllByRole
93+
- `getByRole`
94+
- `queryByRole`
95+
- `getAllByRole`
96+
- `queryAllByRole`
97+
- `findByRole`
98+
- `findAllByRole`
9999
- **ByTestId** find by data-testid attribute
100-
- getByTestId
101-
- queryByTestId
102-
- getAllByTestId
103-
- queryAllByTestId
104-
- findByTestId
105-
- findAllByTestId
100+
- `getByTestId`
101+
- `queryByTestId`
102+
- `getAllByTestId`
103+
- `queryAllByTestId`
104+
- `findByTestId`
105+
- `findAllByTestId`
106106

107107
## Async
108108

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,29 +120,29 @@ const greetingTextNode = await waitForElement(() =>
120120

121121
### Assert
122122

123-
fetch.js
124-
125123
```jsx
126-
import React,{useState} from 'react'
124+
// fetch.js
125+
126+
import React, {useState} from 'react'
127127

128128
export default function Fetch({url}) {
129-
const {greeting, setGreeting} = useState('')
130-
const {buttonClicked, setButtonClicked} = useState(false)
131-
129+
const { greeting, setGreeting } = useState('')
130+
const { buttonClicked, setButtonClicked } = useState(false)
131+
132132
const fetchGreeting = async url => {
133133
const data = await fetch(url)
134-
const {greeting} = data
134+
const { greeting } = data
135135
setGreeting(greeting)
136136
setButtonClicked(true)
137137
}
138138

139139
const buttonText = buttonClicked ? 'Ok' : 'Load Greeting'
140-
140+
141141
return (
142142
<div>
143-
<button
144-
onClick={fetchGreeting}
145-
data-testid ='ok-button'
143+
<button
144+
onClick={fetchGreeting}
145+
data-testid ='ok-button'
146146
disabled={buttonClicked}>
147147
{buttonText}
148148
</button>

0 commit comments

Comments
 (0)