Skip to content

Commit e04ad05

Browse files
committed
refactor: format
1 parent ef5bc3c commit e04ad05

File tree

1 file changed

+87
-29
lines changed

1 file changed

+87
-29
lines changed

Diff for: packages/test-utils/src/error-wrapper.js

+87-29
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,41 @@ export default class ErrorWrapper implements BaseWrapper {
1717

1818
attributes(): void {
1919
throwError(
20-
`find did not return ${this.selector}, cannot call attributes() on empty Wrapper`
20+
`find did not return ${
21+
this.selector
22+
}, cannot call attributes() on empty Wrapper`
2123
)
2224
}
2325

2426
classes(): void {
2527
throwError(
26-
`find did not return ${this.selector}, cannot call classes() on empty Wrapper`
28+
`find did not return ${
29+
this.selector
30+
}, cannot call classes() on empty Wrapper`
2731
)
2832
}
2933

3034
contains(): void {
3135
throwError(
32-
`find did not return ${this.selector}, cannot call contains() on empty Wrapper`
36+
`find did not return ${
37+
this.selector
38+
}, cannot call contains() on empty Wrapper`
3339
)
3440
}
3541

3642
emitted(): void {
3743
throwError(
38-
`find did not return ${this.selector}, cannot call emitted() on empty Wrapper`
44+
`find did not return ${
45+
this.selector
46+
}, cannot call emitted() on empty Wrapper`
3947
)
4048
}
4149

4250
emittedByOrder(): void {
4351
throwError(
44-
`find did not return ${this.selector}, cannot call emittedByOrder() on empty Wrapper`
52+
`find did not return ${
53+
this.selector
54+
}, cannot call emittedByOrder() on empty Wrapper`
4555
)
4656
}
4757

@@ -51,55 +61,73 @@ export default class ErrorWrapper implements BaseWrapper {
5161

5262
filter(): void {
5363
throwError(
54-
`find did not return ${this.selector}, cannot call filter() on empty Wrapper`
64+
`find did not return ${
65+
this.selector
66+
}, cannot call filter() on empty Wrapper`
5567
)
5668
}
5769

5870
visible(): void {
5971
throwError(
60-
`find did not return ${this.selector}, cannot call visible() on empty Wrapper`
72+
`find did not return ${
73+
this.selector
74+
}, cannot call visible() on empty Wrapper`
6175
)
6276
}
6377

6478
hasAttribute(): void {
6579
throwError(
66-
`find did not return ${this.selector}, cannot call hasAttribute() on empty Wrapper`
80+
`find did not return ${
81+
this.selector
82+
}, cannot call hasAttribute() on empty Wrapper`
6783
)
6884
}
6985

7086
hasClass(): void {
7187
throwError(
72-
`find did not return ${this.selector}, cannot call hasClass() on empty Wrapper`
88+
`find did not return ${
89+
this.selector
90+
}, cannot call hasClass() on empty Wrapper`
7391
)
7492
}
7593

7694
hasProp(): void {
7795
throwError(
78-
`find did not return ${this.selector}, cannot call hasProp() on empty Wrapper`
96+
`find did not return ${
97+
this.selector
98+
}, cannot call hasProp() on empty Wrapper`
7999
)
80100
}
81101

82102
hasStyle(): void {
83103
throwError(
84-
`find did not return ${this.selector}, cannot call hasStyle() on empty Wrapper`
104+
`find did not return ${
105+
this.selector
106+
}, cannot call hasStyle() on empty Wrapper`
85107
)
86108
}
87109

88110
findAll(): void {
89111
throwError(
90-
`find did not return ${this.selector}, cannot call findAll() on empty Wrapper`
112+
`find did not return ${
113+
this.selector
114+
}, cannot call findAll() on empty Wrapper`
91115
)
92116
}
93117

94118
find(): void {
95119
throwError(
96-
`find did not return ${this.selector}, cannot call find() on empty Wrapper`
120+
`find did not return ${
121+
this.selector
122+
}, cannot call find() on empty Wrapper`
97123
)
98124
}
99125

100126
html(): void {
101127
throwError(
102-
`find did not return ${this.selector}, cannot call html() on empty Wrapper`
128+
`find did not return ${
129+
this.selector
130+
}, cannot call html() on empty Wrapper`
103131
)
104132
}
105133

@@ -111,91 +139,121 @@ export default class ErrorWrapper implements BaseWrapper {
111139

112140
isEmpty(): void {
113141
throwError(
114-
`find did not return ${this.selector}, cannot call isEmpty() on empty Wrapper`
142+
`find did not return ${
143+
this.selector
144+
}, cannot call isEmpty() on empty Wrapper`
115145
)
116146
}
117147

118148
isVisible(): void {
119149
throwError(
120-
`find did not return ${this.selector}, cannot call isVisible() on empty Wrapper`
150+
`find did not return ${
151+
this.selector
152+
}, cannot call isVisible() on empty Wrapper`
121153
)
122154
}
123155

124156
isVueInstance(): void {
125157
throwError(
126-
`find did not return ${this.selector}, cannot call isVueInstance() on empty Wrapper`
158+
`find did not return ${
159+
this.selector
160+
}, cannot call isVueInstance() on empty Wrapper`
127161
)
128162
}
129163

130164
name(): void {
131165
throwError(
132-
`find did not return ${this.selector}, cannot call name() on empty Wrapper`
166+
`find did not return ${
167+
this.selector
168+
}, cannot call name() on empty Wrapper`
133169
)
134170
}
135171

136172
props(): void {
137173
throwError(
138-
`find did not return ${this.selector}, cannot call props() on empty Wrapper`
174+
`find did not return ${
175+
this.selector
176+
}, cannot call props() on empty Wrapper`
139177
)
140178
}
141179

142180
text(): void {
143181
throwError(
144-
`find did not return ${this.selector}, cannot call text() on empty Wrapper`
182+
`find did not return ${
183+
this.selector
184+
}, cannot call text() on empty Wrapper`
145185
)
146186
}
147187

148188
setComputed(): void {
149189
throwError(
150-
`find did not return ${this.selector}, cannot call setComputed() on empty Wrapper`
190+
`find did not return ${
191+
this.selector
192+
}, cannot call setComputed() on empty Wrapper`
151193
)
152194
}
153195

154196
setData(): void {
155197
throwError(
156-
`find did not return ${this.selector}, cannot call setData() on empty Wrapper`
198+
`find did not return ${
199+
this.selector
200+
}, cannot call setData() on empty Wrapper`
157201
)
158202
}
159203

160204
setMethods(): void {
161205
throwError(
162-
`find did not return ${this.selector}, cannot call setMethods() on empty Wrapper`
206+
`find did not return ${
207+
this.selector
208+
}, cannot call setMethods() on empty Wrapper`
163209
)
164210
}
165211

166212
setProps(): void {
167213
throwError(
168-
`find did not return ${this.selector}, cannot call setProps() on empty Wrapper`
214+
`find did not return ${
215+
this.selector
216+
}, cannot call setProps() on empty Wrapper`
169217
)
170218
}
171219

172220
setValue(): void {
173221
throwError(
174-
`find did not return ${this.selector}, cannot call setValue() on empty Wrapper`
222+
`find did not return ${
223+
this.selector
224+
}, cannot call setValue() on empty Wrapper`
175225
)
176226
}
177227

178228
setChecked(): void {
179229
throwError(
180-
`find did not return ${this.selector}, cannot call setChecked() on empty Wrapper`
230+
`find did not return ${
231+
this.selector
232+
}, cannot call setChecked() on empty Wrapper`
181233
)
182234
}
183235

184236
setSelected(): void {
185237
throwError(
186-
`find did not return ${this.selector}, cannot call setSelected() on empty Wrapper`
238+
`find did not return ${
239+
this.selector
240+
}, cannot call setSelected() on empty Wrapper`
187241
)
188242
}
189243

190244
trigger(): void {
191245
throwError(
192-
`find did not return ${this.selector}, cannot call trigger() on empty Wrapper`
246+
`find did not return ${
247+
this.selector
248+
}, cannot call trigger() on empty Wrapper`
193249
)
194250
}
195251

196252
destroy(): void {
197253
throwError(
198-
`find did not return ${this.selector}, cannot call destroy() on empty Wrapper`
254+
`find did not return ${
255+
this.selector
256+
}, cannot call destroy() on empty Wrapper`
199257
)
200258
}
201259
}

0 commit comments

Comments
 (0)