@@ -56,10 +56,11 @@ export default class ErrorWrapper implements BaseWrapper {
56
56
}
57
57
58
58
emitted ( ) : void {
59
+ throwError (
59
60
`find did not return ${ buildSelectorString (
60
61
this . selector
61
62
) } , cannot call emitted() on empty Wrapper`
62
- )
63
+ )
63
64
}
64
65
65
66
emittedByOrder ( ) : void {
@@ -71,14 +72,15 @@ export default class ErrorWrapper implements BaseWrapper {
71
72
}
72
73
73
74
exists ( ) : boolean {
74
- )
75
+ return false
75
76
}
76
77
77
78
filter ( ) : void {
79
+ throwError (
78
80
`find did not return ${ buildSelectorString (
79
81
this . selector
80
82
) } , cannot call filter() on empty Wrapper`
81
- )
83
+ )
82
84
}
83
85
84
86
visible ( ) : void {
@@ -90,22 +92,23 @@ export default class ErrorWrapper implements BaseWrapper {
90
92
}
91
93
92
94
hasAttribute ( ) : void {
95
+ throwError (
93
96
`find did not return ${ buildSelectorString (
94
97
this . selector
95
98
) } , cannot call hasAttribute() on empty Wrapper`
96
- )
99
+ )
97
100
}
98
101
99
102
hasClass ( ) : void {
103
+ throwError (
100
104
`find did not return ${ buildSelectorString (
101
105
this . selector
102
106
) } , cannot call hasClass() on empty Wrapper`
103
- )
107
+ )
104
108
}
105
109
106
110
hasProp ( ) : void {
107
111
throwError (
108
- `find did not return ${ this . selector } , cannot call hasProp() on empty Wrapper`
109
112
`find did not return ${ buildSelectorString (
110
113
this . selector
111
114
) } , cannot call hasProp() on empty Wrapper`
@@ -114,7 +117,6 @@ export default class ErrorWrapper implements BaseWrapper {
114
117
115
118
hasStyle ( ) : void {
116
119
throwError (
117
- `find did not return ${ this . selector } , cannot call hasStyle() on empty Wrapper`
118
120
`find did not return ${ buildSelectorString (
119
121
this . selector
120
122
) } , cannot call hasStyle() on empty Wrapper`
@@ -123,7 +125,6 @@ export default class ErrorWrapper implements BaseWrapper {
123
125
124
126
findAll ( ) : void {
125
127
throwError (
126
- `find did not return ${ this . selector } , cannot call findAll() on empty Wrapper`
127
128
`find did not return ${ buildSelectorString (
128
129
this . selector
129
130
) } , cannot call findAll() on empty Wrapper`
@@ -132,7 +133,6 @@ export default class ErrorWrapper implements BaseWrapper {
132
133
133
134
find ( ) : void {
134
135
throwError (
135
- `find did not return ${ this . selector } , cannot call find() on empty Wrapper`
136
136
`find did not return ${ buildSelectorString (
137
137
this . selector
138
138
) } , cannot call find() on empty Wrapper`
@@ -141,7 +141,6 @@ export default class ErrorWrapper implements BaseWrapper {
141
141
142
142
html ( ) : void {
143
143
throwError (
144
- `find did not return ${ this . selector } , cannot call html() on empty Wrapper`
145
144
`find did not return ${ buildSelectorString (
146
145
this . selector
147
146
) } , cannot call html() on empty Wrapper`
@@ -158,7 +157,6 @@ export default class ErrorWrapper implements BaseWrapper {
158
157
159
158
isEmpty ( ) : void {
160
159
throwError (
161
- `find did not return ${ this . selector } , cannot call isEmpty() on empty Wrapper`
162
160
`find did not return ${ buildSelectorString (
163
161
this . selector
164
162
) } , cannot call isEmpty() on empty Wrapper`
@@ -167,7 +165,6 @@ export default class ErrorWrapper implements BaseWrapper {
167
165
168
166
isVisible ( ) : void {
169
167
throwError (
170
- `find did not return ${ this . selector } , cannot call isVisible() on empty Wrapper`
171
168
`find did not return ${ buildSelectorString (
172
169
this . selector
173
170
) } , cannot call isVisible() on empty Wrapper`
@@ -176,7 +173,6 @@ export default class ErrorWrapper implements BaseWrapper {
176
173
177
174
isVueInstance ( ) : void {
178
175
throwError (
179
- `find did not return ${ this . selector } , cannot call isVueInstance() on empty Wrapper`
180
176
`find did not return ${ buildSelectorString (
181
177
this . selector
182
178
) } , cannot call isVueInstance() on empty Wrapper`
@@ -185,7 +181,6 @@ export default class ErrorWrapper implements BaseWrapper {
185
181
186
182
name ( ) : void {
187
183
throwError (
188
- `find did not return ${ this . selector } , cannot call name() on empty Wrapper`
189
184
`find did not return ${ buildSelectorString (
190
185
this . selector
191
186
) } , cannot call name() on empty Wrapper`
@@ -194,7 +189,6 @@ export default class ErrorWrapper implements BaseWrapper {
194
189
195
190
props ( ) : void {
196
191
throwError (
197
- `find did not return ${ this . selector } , cannot call props() on empty Wrapper`
198
192
`find did not return ${ buildSelectorString (
199
193
this . selector
200
194
) } , cannot call props() on empty Wrapper`
@@ -203,7 +197,6 @@ export default class ErrorWrapper implements BaseWrapper {
203
197
204
198
text ( ) : void {
205
199
throwError (
206
- `find did not return ${ this . selector } , cannot call text() on empty Wrapper`
207
200
`find did not return ${ buildSelectorString (
208
201
this . selector
209
202
) } , cannot call text() on empty Wrapper`
@@ -212,7 +205,6 @@ export default class ErrorWrapper implements BaseWrapper {
212
205
213
206
setComputed ( ) : void {
214
207
throwError (
215
- `find did not return ${ this . selector } , cannot call setComputed() on empty Wrapper`
216
208
`find did not return ${ buildSelectorString (
217
209
this . selector
218
210
) } , cannot call setComputed() on empty Wrapper`
@@ -221,7 +213,6 @@ export default class ErrorWrapper implements BaseWrapper {
221
213
222
214
setData ( ) : void {
223
215
throwError (
224
- `find did not return ${ this . selector } , cannot call setData() on empty Wrapper`
225
216
`find did not return ${ buildSelectorString (
226
217
this . selector
227
218
) } , cannot call setData() on empty Wrapper`
@@ -230,7 +221,6 @@ export default class ErrorWrapper implements BaseWrapper {
230
221
231
222
setMethods ( ) : void {
232
223
throwError (
233
- `find did not return ${ this . selector } , cannot call setMethods() on empty Wrapper`
234
224
`find did not return ${ buildSelectorString (
235
225
this . selector
236
226
) } , cannot call setMethods() on empty Wrapper`
@@ -239,7 +229,6 @@ export default class ErrorWrapper implements BaseWrapper {
239
229
240
230
setProps ( ) : void {
241
231
throwError (
242
- `find did not return ${ this . selector } , cannot call setProps() on empty Wrapper`
243
232
`find did not return ${ buildSelectorString (
244
233
this . selector
245
234
) } , cannot call setProps() on empty Wrapper`
@@ -248,7 +237,6 @@ export default class ErrorWrapper implements BaseWrapper {
248
237
249
238
setValue ( ) : void {
250
239
throwError (
251
- `find did not return ${ this . selector } , cannot call setValue() on empty Wrapper`
252
240
`find did not return ${ buildSelectorString (
253
241
this . selector
254
242
) } , cannot call setValue() on empty Wrapper`
@@ -257,7 +245,6 @@ export default class ErrorWrapper implements BaseWrapper {
257
245
258
246
setChecked ( ) : void {
259
247
throwError (
260
- `find did not return ${ this . selector } , cannot call setChecked() on empty Wrapper`
261
248
`find did not return ${ buildSelectorString (
262
249
this . selector
263
250
) } , cannot call setChecked() on empty Wrapper`
@@ -266,7 +253,6 @@ export default class ErrorWrapper implements BaseWrapper {
266
253
267
254
setSelected ( ) : void {
268
255
throwError (
269
- `find did not return ${ this . selector } , cannot call setSelected() on empty Wrapper`
270
256
`find did not return ${ buildSelectorString (
271
257
this . selector
272
258
) } , cannot call setSelected() on empty Wrapper`
@@ -275,7 +261,6 @@ export default class ErrorWrapper implements BaseWrapper {
275
261
276
262
trigger ( ) : void {
277
263
throwError (
278
- `find did not return ${ this . selector } , cannot call trigger() on empty Wrapper`
279
264
`find did not return ${ buildSelectorString (
280
265
this . selector
281
266
) } , cannot call trigger() on empty Wrapper`
@@ -284,7 +269,6 @@ export default class ErrorWrapper implements BaseWrapper {
284
269
285
270
destroy ( ) : void {
286
271
throwError (
287
- `find did not return ${ this . selector } , cannot call destroy() on empty Wrapper`
288
272
`find did not return ${ buildSelectorString (
289
273
this . selector
290
274
) } , cannot call destroy() on empty Wrapper`
0 commit comments