Skip to content

Commit 72b6578

Browse files
committed
refactor: format
1 parent b7c5462 commit 72b6578

File tree

1 file changed

+29
-87
lines changed

1 file changed

+29
-87
lines changed

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

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

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

2624
classes(): void {
2725
throwError(
28-
`find did not return ${
29-
this.selector
30-
}, cannot call classes() on empty Wrapper`
26+
`find did not return ${this.selector}, cannot call classes() on empty Wrapper`
3127
)
3228
}
3329

3430
contains(): void {
3531
throwError(
36-
`find did not return ${
37-
this.selector
38-
}, cannot call contains() on empty Wrapper`
32+
`find did not return ${this.selector}, cannot call contains() on empty Wrapper`
3933
)
4034
}
4135

4236
emitted(): void {
4337
throwError(
44-
`find did not return ${
45-
this.selector
46-
}, cannot call emitted() on empty Wrapper`
38+
`find did not return ${this.selector}, cannot call emitted() on empty Wrapper`
4739
)
4840
}
4941

5042
emittedByOrder(): void {
5143
throwError(
52-
`find did not return ${
53-
this.selector
54-
}, cannot call emittedByOrder() on empty Wrapper`
44+
`find did not return ${this.selector}, cannot call emittedByOrder() on empty Wrapper`
5545
)
5646
}
5747

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

6252
filter(): void {
6353
throwError(
64-
`find did not return ${
65-
this.selector
66-
}, cannot call filter() on empty Wrapper`
54+
`find did not return ${this.selector}, cannot call filter() on empty Wrapper`
6755
)
6856
}
6957

7058
visible(): void {
7159
throwError(
72-
`find did not return ${
73-
this.selector
74-
}, cannot call visible() on empty Wrapper`
60+
`find did not return ${this.selector}, cannot call visible() on empty Wrapper`
7561
)
7662
}
7763

7864
hasAttribute(): void {
7965
throwError(
80-
`find did not return ${
81-
this.selector
82-
}, cannot call hasAttribute() on empty Wrapper`
66+
`find did not return ${this.selector}, cannot call hasAttribute() on empty Wrapper`
8367
)
8468
}
8569

8670
hasClass(): void {
8771
throwError(
88-
`find did not return ${
89-
this.selector
90-
}, cannot call hasClass() on empty Wrapper`
72+
`find did not return ${this.selector}, cannot call hasClass() on empty Wrapper`
9173
)
9274
}
9375

9476
hasProp(): void {
9577
throwError(
96-
`find did not return ${
97-
this.selector
98-
}, cannot call hasProp() on empty Wrapper`
78+
`find did not return ${this.selector}, cannot call hasProp() on empty Wrapper`
9979
)
10080
}
10181

10282
hasStyle(): void {
10383
throwError(
104-
`find did not return ${
105-
this.selector
106-
}, cannot call hasStyle() on empty Wrapper`
84+
`find did not return ${this.selector}, cannot call hasStyle() on empty Wrapper`
10785
)
10886
}
10987

11088
findAll(): void {
11189
throwError(
112-
`find did not return ${
113-
this.selector
114-
}, cannot call findAll() on empty Wrapper`
90+
`find did not return ${this.selector}, cannot call findAll() on empty Wrapper`
11591
)
11692
}
11793

11894
find(): void {
11995
throwError(
120-
`find did not return ${
121-
this.selector
122-
}, cannot call find() on empty Wrapper`
96+
`find did not return ${this.selector}, cannot call find() on empty Wrapper`
12397
)
12498
}
12599

126100
html(): void {
127101
throwError(
128-
`find did not return ${
129-
this.selector
130-
}, cannot call html() on empty Wrapper`
102+
`find did not return ${this.selector}, cannot call html() on empty Wrapper`
131103
)
132104
}
133105

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

140112
isEmpty(): void {
141113
throwError(
142-
`find did not return ${
143-
this.selector
144-
}, cannot call isEmpty() on empty Wrapper`
114+
`find did not return ${this.selector}, cannot call isEmpty() on empty Wrapper`
145115
)
146116
}
147117

148118
isVisible(): void {
149119
throwError(
150-
`find did not return ${
151-
this.selector
152-
}, cannot call isVisible() on empty Wrapper`
120+
`find did not return ${this.selector}, cannot call isVisible() on empty Wrapper`
153121
)
154122
}
155123

156124
isVueInstance(): void {
157125
throwError(
158-
`find did not return ${
159-
this.selector
160-
}, cannot call isVueInstance() on empty Wrapper`
126+
`find did not return ${this.selector}, cannot call isVueInstance() on empty Wrapper`
161127
)
162128
}
163129

164130
name(): void {
165131
throwError(
166-
`find did not return ${
167-
this.selector
168-
}, cannot call name() on empty Wrapper`
132+
`find did not return ${this.selector}, cannot call name() on empty Wrapper`
169133
)
170134
}
171135

172136
props(): void {
173137
throwError(
174-
`find did not return ${
175-
this.selector
176-
}, cannot call props() on empty Wrapper`
138+
`find did not return ${this.selector}, cannot call props() on empty Wrapper`
177139
)
178140
}
179141

180142
text(): void {
181143
throwError(
182-
`find did not return ${
183-
this.selector
184-
}, cannot call text() on empty Wrapper`
144+
`find did not return ${this.selector}, cannot call text() on empty Wrapper`
185145
)
186146
}
187147

188148
setComputed(): void {
189149
throwError(
190-
`find did not return ${
191-
this.selector
192-
}, cannot call setComputed() on empty Wrapper`
150+
`find did not return ${this.selector}, cannot call setComputed() on empty Wrapper`
193151
)
194152
}
195153

196154
setData(): void {
197155
throwError(
198-
`find did not return ${
199-
this.selector
200-
}, cannot call setData() on empty Wrapper`
156+
`find did not return ${this.selector}, cannot call setData() on empty Wrapper`
201157
)
202158
}
203159

204160
setMethods(): void {
205161
throwError(
206-
`find did not return ${
207-
this.selector
208-
}, cannot call setMethods() on empty Wrapper`
162+
`find did not return ${this.selector}, cannot call setMethods() on empty Wrapper`
209163
)
210164
}
211165

212166
setProps(): void {
213167
throwError(
214-
`find did not return ${
215-
this.selector
216-
}, cannot call setProps() on empty Wrapper`
168+
`find did not return ${this.selector}, cannot call setProps() on empty Wrapper`
217169
)
218170
}
219171

220172
setValue(): void {
221173
throwError(
222-
`find did not return ${
223-
this.selector
224-
}, cannot call setValue() on empty Wrapper`
174+
`find did not return ${this.selector}, cannot call setValue() on empty Wrapper`
225175
)
226176
}
227177

228178
setChecked(): void {
229179
throwError(
230-
`find did not return ${
231-
this.selector
232-
}, cannot call setChecked() on empty Wrapper`
180+
`find did not return ${this.selector}, cannot call setChecked() on empty Wrapper`
233181
)
234182
}
235183

236184
setSelected(): void {
237185
throwError(
238-
`find did not return ${
239-
this.selector
240-
}, cannot call setSelected() on empty Wrapper`
186+
`find did not return ${this.selector}, cannot call setSelected() on empty Wrapper`
241187
)
242188
}
243189

244190
trigger(): void {
245191
throwError(
246-
`find did not return ${
247-
this.selector
248-
}, cannot call trigger() on empty Wrapper`
192+
`find did not return ${this.selector}, cannot call trigger() on empty Wrapper`
249193
)
250194
}
251195

252196
destroy(): void {
253197
throwError(
254-
`find did not return ${
255-
this.selector
256-
}, cannot call destroy() on empty Wrapper`
198+
`find did not return ${this.selector}, cannot call destroy() on empty Wrapper`
257199
)
258200
}
259201
}

0 commit comments

Comments
 (0)