Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 2cab7d7

Browse files
authored
chore: run dart fix (#23)
1 parent 060e78e commit 2cab7d7

File tree

1 file changed

+84
-36
lines changed

1 file changed

+84
-36
lines changed

test/protocol/models/rfq_test.dart

+84-36
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,13 @@ void main() async {
6868

6969
expect(
7070
() async => Rfq.parse(json, requireAllPrivateData: true),
71-
throwsA(predicate((e) =>
72-
e is TbdexParseException &&
73-
e.code == TbdexExceptionCode.rfqPrivateDataMissing)),
71+
throwsA(
72+
predicate(
73+
(e) =>
74+
e is TbdexParseException &&
75+
e.code == TbdexExceptionCode.rfqPrivateDataMissing,
76+
),
77+
),
7478
);
7579
});
7680

@@ -86,9 +90,13 @@ void main() async {
8690

8791
expect(
8892
() async => Rfq.parse(json, requireAllPrivateData: true),
89-
throwsA(predicate((e) =>
90-
e is TbdexValidatorException &&
91-
e.code == TbdexExceptionCode.validatorJsonSchemaError)),
93+
throwsA(
94+
predicate(
95+
(e) =>
96+
e is TbdexValidatorException &&
97+
e.code == TbdexExceptionCode.validatorJsonSchemaError,
98+
),
99+
),
92100
);
93101
});
94102

@@ -107,9 +115,13 @@ void main() async {
107115

108116
expect(
109117
() async => Rfq.parse(json, requireAllPrivateData: true),
110-
throwsA(predicate((e) =>
111-
e is TbdexParseException &&
112-
e.code == TbdexExceptionCode.rfqPayinDetailsHashMismatch)),
118+
throwsA(
119+
predicate(
120+
(e) =>
121+
e is TbdexParseException &&
122+
e.code == TbdexExceptionCode.rfqPayinDetailsHashMismatch,
123+
),
124+
),
113125
);
114126
});
115127

@@ -128,9 +140,13 @@ void main() async {
128140

129141
expect(
130142
() async => Rfq.parse(json, requireAllPrivateData: true),
131-
throwsA(predicate((e) =>
132-
e is TbdexParseException &&
133-
e.code == TbdexExceptionCode.rfqPayoutDetailsHashMismatch)),
143+
throwsA(
144+
predicate(
145+
(e) =>
146+
e is TbdexParseException &&
147+
e.code == TbdexExceptionCode.rfqPayoutDetailsHashMismatch,
148+
),
149+
),
134150
);
135151
});
136152

@@ -149,9 +165,13 @@ void main() async {
149165

150166
expect(
151167
() async => Rfq.parse(json, requireAllPrivateData: true),
152-
throwsA(predicate((e) =>
153-
e is TbdexParseException &&
154-
e.code == TbdexExceptionCode.rfqClaimsHashMismatch)),
168+
throwsA(
169+
predicate(
170+
(e) =>
171+
e is TbdexParseException &&
172+
e.code == TbdexExceptionCode.rfqClaimsHashMismatch,
173+
),
174+
),
155175
);
156176
});
157177

@@ -169,9 +189,13 @@ void main() async {
169189

170190
expect(
171191
() async => Rfq.parse(json, requireAllPrivateData: true),
172-
throwsA(predicate((e) =>
173-
e is TbdexParseException &&
174-
e.code == TbdexExceptionCode.rfqPayinDetailsMissing)),
192+
throwsA(
193+
predicate(
194+
(e) =>
195+
e is TbdexParseException &&
196+
e.code == TbdexExceptionCode.rfqPayinDetailsMissing,
197+
),
198+
),
175199
);
176200
});
177201

@@ -189,9 +213,13 @@ void main() async {
189213

190214
expect(
191215
() async => Rfq.parse(json, requireAllPrivateData: true),
192-
throwsA(predicate((e) =>
193-
e is TbdexParseException &&
194-
e.code == TbdexExceptionCode.rfqPayoutDetailsMissing)),
216+
throwsA(
217+
predicate(
218+
(e) =>
219+
e is TbdexParseException &&
220+
e.code == TbdexExceptionCode.rfqPayoutDetailsMissing,
221+
),
222+
),
195223
);
196224
});
197225

@@ -209,9 +237,13 @@ void main() async {
209237

210238
expect(
211239
() async => Rfq.parse(json, requireAllPrivateData: true),
212-
throwsA(predicate((e) =>
213-
e is TbdexParseException &&
214-
e.code == TbdexExceptionCode.rfqClaimsMissing)),
240+
throwsA(
241+
predicate(
242+
(e) =>
243+
e is TbdexParseException &&
244+
e.code == TbdexExceptionCode.rfqClaimsMissing,
245+
),
246+
),
215247
);
216248
});
217249
});
@@ -230,9 +262,13 @@ void main() async {
230262
expect(
231263
() async =>
232264
Rfq.parse(json), // requireAllPrivateData = false by default
233-
throwsA(predicate((e) =>
234-
e is TbdexValidatorException &&
235-
e.code == TbdexExceptionCode.validatorJsonSchemaError)),
265+
throwsA(
266+
predicate(
267+
(e) =>
268+
e is TbdexValidatorException &&
269+
e.code == TbdexExceptionCode.validatorJsonSchemaError,
270+
),
271+
),
236272
);
237273
});
238274

@@ -252,9 +288,13 @@ void main() async {
252288
expect(
253289
() async =>
254290
Rfq.parse(json), // requireAllPrivateData = false by default
255-
throwsA(predicate((e) =>
256-
e is TbdexParseException &&
257-
e.code == TbdexExceptionCode.rfqPayinDetailsHashMismatch)),
291+
throwsA(
292+
predicate(
293+
(e) =>
294+
e is TbdexParseException &&
295+
e.code == TbdexExceptionCode.rfqPayinDetailsHashMismatch,
296+
),
297+
),
258298
);
259299
});
260300

@@ -274,9 +314,13 @@ void main() async {
274314
expect(
275315
() async =>
276316
Rfq.parse(json), // requireAllPrivateData = false by default
277-
throwsA(predicate((e) =>
278-
e is TbdexParseException &&
279-
e.code == TbdexExceptionCode.rfqPayoutDetailsHashMismatch)),
317+
throwsA(
318+
predicate(
319+
(e) =>
320+
e is TbdexParseException &&
321+
e.code == TbdexExceptionCode.rfqPayoutDetailsHashMismatch,
322+
),
323+
),
280324
);
281325
});
282326

@@ -296,9 +340,13 @@ void main() async {
296340
expect(
297341
() async =>
298342
Rfq.parse(json), // requireAllPrivateData = false by default
299-
throwsA(predicate((e) =>
300-
e is TbdexParseException &&
301-
e.code == TbdexExceptionCode.rfqClaimsHashMismatch)),
343+
throwsA(
344+
predicate(
345+
(e) =>
346+
e is TbdexParseException &&
347+
e.code == TbdexExceptionCode.rfqClaimsHashMismatch,
348+
),
349+
),
302350
);
303351
});
304352
});

0 commit comments

Comments
 (0)