Skip to content

Commit 1d17904

Browse files
committed
snapshots
1 parent c335c34 commit 1d17904

21 files changed

Lines changed: 189 additions & 189 deletions

src/matchers/__tests__/to-be-busy.test.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ test('toBeBusy() error messages', async () => {
3434

3535
expect(() => expect(screen.getByTestId('busy')).not.toBeBusy())
3636
.toThrowErrorMatchingInlineSnapshot(`
37-
"expect(element).not.toBeBusy()
37+
"expect(instance).not.toBeBusy()
3838
39-
Received element is busy:
39+
Received instance is busy:
4040
<View
4141
accessibilityState={
4242
{
@@ -49,9 +49,9 @@ test('toBeBusy() error messages', async () => {
4949

5050
expect(() => expect(screen.getByTestId('busy-aria')).not.toBeBusy())
5151
.toThrowErrorMatchingInlineSnapshot(`
52-
"expect(element).not.toBeBusy()
52+
"expect(instance).not.toBeBusy()
5353
54-
Received element is busy:
54+
Received instance is busy:
5555
<View
5656
aria-busy={true}
5757
testID="busy-aria"
@@ -60,9 +60,9 @@ test('toBeBusy() error messages', async () => {
6060

6161
expect(() => expect(screen.getByTestId('not-busy')).toBeBusy())
6262
.toThrowErrorMatchingInlineSnapshot(`
63-
"expect(element).toBeBusy()
63+
"expect(instance).toBeBusy()
6464
65-
Received element is not busy:
65+
Received instance is not busy:
6666
<View
6767
accessibilityState={
6868
{
@@ -75,9 +75,9 @@ test('toBeBusy() error messages', async () => {
7575

7676
expect(() => expect(screen.getByTestId('not-busy-aria')).toBeBusy())
7777
.toThrowErrorMatchingInlineSnapshot(`
78-
"expect(element).toBeBusy()
78+
"expect(instance).toBeBusy()
7979
80-
Received element is not busy:
80+
Received instance is not busy:
8181
<View
8282
aria-busy={false}
8383
testID="not-busy-aria"
@@ -86,9 +86,9 @@ test('toBeBusy() error messages', async () => {
8686

8787
expect(() => expect(screen.getByTestId('default')).toBeBusy())
8888
.toThrowErrorMatchingInlineSnapshot(`
89-
"expect(element).toBeBusy()
89+
"expect(instance).toBeBusy()
9090
91-
Received element is not busy:
91+
Received instance is not busy:
9292
<View
9393
testID="default"
9494
/>"

src/matchers/__tests__/to-be-checked.test.tsx

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,29 @@ test('toBeCheck() with Switch', async () => {
4747
expect(defaultView).not.toBeChecked();
4848

4949
expect(() => expect(checked).not.toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
50-
"expect(element).not.toBeChecked()
50+
"expect(instance).not.toBeChecked()
5151
52-
Received element is checked:
52+
Received instance is checked:
5353
<RCTSwitch
5454
accessibilityRole="switch"
5555
testID="checked"
5656
value={true}
5757
/>"
5858
`);
5959
expect(() => expect(unchecked).toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
60-
"expect(element).toBeChecked()
60+
"expect(instance).toBeChecked()
6161
62-
Received element is not checked:
62+
Received instance is not checked:
6363
<RCTSwitch
6464
accessibilityRole="switch"
6565
testID="unchecked"
6666
value={false}
6767
/>"
6868
`);
6969
expect(() => expect(defaultView).toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
70-
"expect(element).toBeChecked()
70+
"expect(instance).toBeChecked()
7171
72-
Received element is not checked:
72+
Received instance is not checked:
7373
<RCTSwitch
7474
accessibilityRole="switch"
7575
testID="default"
@@ -92,9 +92,9 @@ test('toBeCheck() with "checkbox" role', async () => {
9292
expect(defaultView).not.toBeChecked();
9393

9494
expect(() => expect(checked).not.toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
95-
"expect(element).not.toBeChecked()
95+
"expect(instance).not.toBeChecked()
9696
97-
Received element is checked:
97+
Received instance is checked:
9898
<View
9999
accessibilityRole="checkbox"
100100
accessibilityState={
@@ -107,9 +107,9 @@ test('toBeCheck() with "checkbox" role', async () => {
107107
/>"
108108
`);
109109
expect(() => expect(unchecked).toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
110-
"expect(element).toBeChecked()
110+
"expect(instance).toBeChecked()
111111
112-
Received element is not checked:
112+
Received instance is not checked:
113113
<View
114114
accessibilityRole="checkbox"
115115
accessibilityState={
@@ -122,9 +122,9 @@ test('toBeCheck() with "checkbox" role', async () => {
122122
/>"
123123
`);
124124
expect(() => expect(mixed).toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
125-
"expect(element).toBeChecked()
125+
"expect(instance).toBeChecked()
126126
127-
Received element is not checked:
127+
Received instance is not checked:
128128
<View
129129
accessibilityRole="checkbox"
130130
accessibilityState={
@@ -137,9 +137,9 @@ test('toBeCheck() with "checkbox" role', async () => {
137137
/>"
138138
`);
139139
expect(() => expect(defaultView).toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
140-
"expect(element).toBeChecked()
140+
"expect(instance).toBeChecked()
141141
142-
Received element is not checked:
142+
Received instance is not checked:
143143
<View
144144
accessibilityRole="checkbox"
145145
accessible={true}
@@ -160,9 +160,9 @@ test('toBeCheck() with "radio" role', async () => {
160160
expect(defaultView).not.toBeChecked();
161161

162162
expect(() => expect(checked).not.toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
163-
"expect(element).not.toBeChecked()
163+
"expect(instance).not.toBeChecked()
164164
165-
Received element is checked:
165+
Received instance is checked:
166166
<View
167167
accessibilityRole="radio"
168168
accessibilityState={
@@ -175,9 +175,9 @@ test('toBeCheck() with "radio" role', async () => {
175175
/>"
176176
`);
177177
expect(() => expect(unchecked).toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
178-
"expect(element).toBeChecked()
178+
"expect(instance).toBeChecked()
179179
180-
Received element is not checked:
180+
Received instance is not checked:
181181
<View
182182
accessibilityRole="radio"
183183
accessibilityState={
@@ -190,9 +190,9 @@ test('toBeCheck() with "radio" role', async () => {
190190
/>"
191191
`);
192192
expect(() => expect(defaultView).toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
193-
"expect(element).toBeChecked()
193+
"expect(instance).toBeChecked()
194194
195-
Received element is not checked:
195+
Received instance is not checked:
196196
<View
197197
accessibilityRole="radio"
198198
accessible={true}
@@ -213,9 +213,9 @@ test('toBeCheck() with "switch" role', async () => {
213213
expect(defaultView).not.toBeChecked();
214214

215215
expect(() => expect(checked).not.toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
216-
"expect(element).not.toBeChecked()
216+
"expect(instance).not.toBeChecked()
217217
218-
Received element is checked:
218+
Received instance is checked:
219219
<View
220220
accessibilityRole="switch"
221221
accessibilityState={
@@ -228,9 +228,9 @@ test('toBeCheck() with "switch" role', async () => {
228228
/>"
229229
`);
230230
expect(() => expect(unchecked).toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
231-
"expect(element).toBeChecked()
231+
"expect(instance).toBeChecked()
232232
233-
Received element is not checked:
233+
Received instance is not checked:
234234
<View
235235
accessibilityRole="switch"
236236
accessibilityState={
@@ -243,9 +243,9 @@ test('toBeCheck() with "switch" role', async () => {
243243
/>"
244244
`);
245245
expect(() => expect(defaultView).toBeChecked()).toThrowErrorMatchingInlineSnapshot(`
246-
"expect(element).toBeChecked()
246+
"expect(instance).toBeChecked()
247247
248-
Received element is not checked:
248+
Received instance is not checked:
249249
<View
250250
accessibilityRole="switch"
251251
accessible={true}

src/matchers/__tests__/to-be-disabled.test.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ test('toBeDisabled()/toBeEnabled() supports basic case', async () => {
3939

4040
expect(() => expect(screen.getByTestId('disabled-parent')).not.toBeDisabled())
4141
.toThrowErrorMatchingInlineSnapshot(`
42-
"expect(element).not.toBeDisabled()
42+
"expect(instance).not.toBeDisabled()
4343
44-
Received element is disabled:
44+
Received instance is disabled:
4545
<View
4646
aria-disabled={true}
4747
testID="disabled-parent"
@@ -50,9 +50,9 @@ test('toBeDisabled()/toBeEnabled() supports basic case', async () => {
5050

5151
expect(() => expect(screen.getByTestId('enabled-view')).toBeDisabled())
5252
.toThrowErrorMatchingInlineSnapshot(`
53-
"expect(element).toBeDisabled()
53+
"expect(instance).toBeDisabled()
5454
55-
Received element is not disabled:
55+
Received instance is not disabled:
5656
<View
5757
testID="enabled-view"
5858
/>"
@@ -67,9 +67,9 @@ test('toBeDisabled()/toBeEnabled() supports basic case', async () => {
6767

6868
expect(() => expect(screen.getByTestId('disabled-parent')).toBeEnabled())
6969
.toThrowErrorMatchingInlineSnapshot(`
70-
"expect(element).toBeEnabled()
70+
"expect(instance).toBeEnabled()
7171
72-
Received element is not enabled:
72+
Received instance is not enabled:
7373
<View
7474
aria-disabled={true}
7575
testID="disabled-parent"
@@ -78,9 +78,9 @@ test('toBeDisabled()/toBeEnabled() supports basic case', async () => {
7878

7979
expect(() => expect(screen.getByTestId('enabled-view')).not.toBeEnabled())
8080
.toThrowErrorMatchingInlineSnapshot(`
81-
"expect(element).not.toBeEnabled()
81+
"expect(instance).not.toBeEnabled()
8282
83-
Received element is enabled:
83+
Received instance is enabled:
8484
<View
8585
testID="enabled-view"
8686
/>"
@@ -103,9 +103,9 @@ test('toBeDisabled()/toBeEnabled() supports Pressable with "disabled" prop', asy
103103
expect(title).not.toBeEnabled();
104104

105105
expect(() => expect(pressable).toBeEnabled()).toThrowErrorMatchingInlineSnapshot(`
106-
"expect(element).toBeEnabled()
106+
"expect(instance).toBeEnabled()
107107
108-
Received element is not enabled:
108+
Received instance is not enabled:
109109
<View
110110
accessibilityState={
111111
{
@@ -118,9 +118,9 @@ test('toBeDisabled()/toBeEnabled() supports Pressable with "disabled" prop', asy
118118
`);
119119

120120
expect(() => expect(pressable).not.toBeDisabled()).toThrowErrorMatchingInlineSnapshot(`
121-
"expect(element).not.toBeDisabled()
121+
"expect(instance).not.toBeDisabled()
122122
123-
Received element is disabled:
123+
Received instance is disabled:
124124
<View
125125
accessibilityState={
126126
{
@@ -133,18 +133,18 @@ test('toBeDisabled()/toBeEnabled() supports Pressable with "disabled" prop', asy
133133
`);
134134

135135
expect(() => expect(title).toBeEnabled()).toThrowErrorMatchingInlineSnapshot(`
136-
"expect(element).toBeEnabled()
136+
"expect(instance).toBeEnabled()
137137
138-
Received element is not enabled:
138+
Received instance is not enabled:
139139
<Text>
140140
Button
141141
</Text>"
142142
`);
143143

144144
expect(() => expect(title).not.toBeDisabled()).toThrowErrorMatchingInlineSnapshot(`
145-
"expect(element).not.toBeDisabled()
145+
"expect(instance).not.toBeDisabled()
146146
147-
Received element is disabled:
147+
Received instance is disabled:
148148
<Text>
149149
Button
150150
</Text>"

src/matchers/__tests__/to-be-empty-element.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test('toBeEmptyElement() base case', async () => {
1919
const empty = screen.getByTestId('empty');
2020
expect(empty).toBeEmptyElement();
2121
expect(() => expect(empty).not.toBeEmptyElement()).toThrowErrorMatchingInlineSnapshot(`
22-
"expect(element).not.toBeEmptyElement()
22+
"expect(instance).not.toBeEmptyElement()
2323
2424
Received:
2525
(no elements)"
@@ -28,7 +28,7 @@ test('toBeEmptyElement() base case', async () => {
2828
const notEmpty = screen.getByTestId('not-empty');
2929
expect(notEmpty).not.toBeEmptyElement();
3030
expect(() => expect(notEmpty).toBeEmptyElement()).toThrowErrorMatchingInlineSnapshot(`
31-
"expect(element).toBeEmptyElement()
31+
"expect(instance).toBeEmptyElement()
3232
3333
Received:
3434
<View
@@ -49,7 +49,7 @@ test('toBeEmptyElement() ignores composite-only children', async () => {
4949
const view = screen.getByTestId('view');
5050
expect(view).toBeEmptyElement();
5151
expect(() => expect(view).not.toBeEmptyElement()).toThrowErrorMatchingInlineSnapshot(`
52-
"expect(element).not.toBeEmptyElement()
52+
"expect(instance).not.toBeEmptyElement()
5353
5454
Received:
5555
(no elements)"
@@ -62,7 +62,7 @@ test('toBeEmptyElement() on null element', () => {
6262
}).toThrowErrorMatchingInlineSnapshot(`
6363
"expect(received).toBeEmptyElement()
6464
65-
received value must be a host element.
65+
received value must be a host instance.
6666
Received has value: null"
6767
`);
6868
});

0 commit comments

Comments
 (0)