Skip to content

Commit 4a6d67d

Browse files
committed
chore: tweak heading levels
1 parent 5cf655f commit 4a6d67d

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

website/docs/JestMatchers.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import TOCInline from '@theme/TOCInline';
77

88
<TOCInline toc={toc} />
99

10-
# Element Existence
10+
## Element Existence
1111

12-
## `toBeOnTheScreen()`
12+
### `toBeOnTheScreen()`
1313

1414
```ts
1515
expect(element).toBeOnTheScreen()
@@ -21,9 +21,9 @@ This allows you to assert whether element is in the element tree or not.
2121
This matchers requires element to be attached to the element tree. This might be useful if your holding a reference to an element and the element gets unmounted during the test.
2222
:::
2323

24-
# Element State
24+
## Element State
2525

26-
## `toHaveTextContent()`
26+
### `toHaveTextContent()`
2727

2828
```ts
2929
expect(element).toHaveTextContent(text: TextMatch, options?: TextMatchOptions)
@@ -33,23 +33,23 @@ This allows you to assert whether the given element has a text content or not. I
3333

3434
When `text` parameter is `undefined` it will only check for existence of text content, and when `text` is defined it will check if the actual text content matches passed value.
3535

36-
## `toHaveDisplayValue()`
36+
### `toHaveDisplayValue()`
3737

3838
```ts
3939
expect(element).toHaveDisplayValue(value: TextMatch, options?: TextMatchOptions)
4040
```
4141

4242
This allows you to assert whether the given `TextInput` element has specified display value. It accepts either `string` or `RegExp` matchers, as well as `TextMatchOptions`.
4343

44-
## `toHaveAccessibleValue()`
44+
### `toHaveAccessibleValue()`
4545

4646
```ts
4747
expect(element).toHaveAccessibleValue(...)
4848
```
4949

5050
This allows you to assert whether the given element has specified accessible value.
5151

52-
## `toBeEnabled()` / `toBeDisabled`
52+
### `toBeEnabled()` / `toBeDisabled`
5353

5454
```ts
5555
expect(element).toBeEnabled()
@@ -63,7 +63,7 @@ This matchers are direct negation of each other, and both are probivided to avoi
6363
:::
6464

6565

66-
## `toBeSelected()`
66+
### `toBeSelected()`
6767

6868
```ts
6969
expect(element).toBeSelected()
@@ -72,7 +72,7 @@ expect(element).toBeSelected()
7272
This allows you to assert whether the given element is selected from user's perspective. It relies on accessibility selected state as set by `aria-selected` or `accessibilityState.selected` props.
7373

7474

75-
## `toBeChecked()` / `toBePartiallyChecked()`
75+
### `toBeChecked()` / `toBePartiallyChecked()`
7676

7777
```ts
7878
expect(element).toBeChecked()
@@ -86,7 +86,7 @@ These allows you to assert whether the given element is checked or partially che
8686
* `toBePartiallyChecked()` matchers works only on elements with `checkbox` role.
8787
:::
8888

89-
## `toBeExpanded()` / `toBeCollapsed()`
89+
### `toBeExpanded()` / `toBeCollapsed()`
9090

9191
```ts
9292
expect(element).toBeExpanded()
@@ -100,17 +100,17 @@ This matchers are direct negation of each other for expandable elements (element
100100
:::
101101

102102

103-
## `toBeBusy()`
103+
### `toBeBusy()`
104104

105105
```ts
106106
expect(element).toBeBusy()
107107
```
108108

109109
This allows you to assert whether the given element is busy from user's perspective. It relies on accessibility selected state as set by `aria-busy` or `accessibilityState.busy` props.
110110

111-
# Element Styles
111+
## Element Styles
112112

113-
## `toBeVisible()`
113+
### `toBeVisible()`
114114

115115
```ts
116116
expect(element).toBeVisible()
@@ -120,7 +120,7 @@ This allows you to assert whether the given element is visible from user's persp
120120

121121
The element is considered invisibile when it or any of its ancestors has `display: none` or `opacity: 0` styles, as well as when it's hidden from accessbility.
122122

123-
## `toHaveStyle()`
123+
### `toHaveStyle()`
124124

125125
```ts
126126
expect(element).toHaveStyle(style: StyleProp<Style>)
@@ -129,9 +129,9 @@ expect(element).toHaveStyle(style: StyleProp<Style>)
129129
This allows you to assert whether the given element has given styles.
130130

131131

132-
# Other
132+
## Other
133133

134-
## `toBeEmptyElement()`
134+
### `toBeEmptyElement()`
135135

136136
```ts
137137
expect(element).toBeEmptyElement()
@@ -140,15 +140,15 @@ expect(element).toBeEmptyElement()
140140
This allows you to assert whether the given element does not have any host child elements nor text content.
141141

142142

143-
## `toContainElement()`
143+
### `toContainElement()`
144144

145145
```ts
146146
expect(container).toContainElement(element: ReactTestInstance | null)
147147
```
148148

149149
This allows you to assert whether the given container element does contain another host element.
150150

151-
## `toHaveProp()`
151+
### `toHaveProp()`
152152

153153
```ts
154154
expect(element).toHaveProp(name: string, value?: unknown)

0 commit comments

Comments
 (0)