Skip to content

Commit 9a7961b

Browse files
committed
fix formatting
1 parent 22c6cce commit 9a7961b

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

test/src/matchers_test.dart

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ void main() {
4545
}
4646

4747
group('constructor', () {
48-
test(
49-
'throws AssertionError when both whereSettings '
48+
test('throws AssertionError when both whereSettings '
5049
'and whereName or whereArguments matchers are provided', () {
5150
expect(
5251
() => isRoute(
@@ -134,8 +133,7 @@ void main() {
134133
);
135134
});
136135

137-
test(
138-
'does not match anything that is not a route '
136+
test('does not match anything that is not a route '
139137
'with matching settings', () {
140138
expectToFail(
141139
createRoute<dynamic>(name: '/test'),
@@ -220,13 +218,15 @@ is a route where the route's `name` is different.
220218
expectToFail(
221219
createRoute<dynamic>(arguments: {'a': 1}),
222220
isRoute(whereArguments: equals({'a': 2})),
223-
withMessage: "is a route where the route's `arguments` "
221+
withMessage:
222+
"is a route where the route's `arguments` "
224223
"at location ['a'] is <1> instead of <2>",
225224
);
226225
expectToFail(
227226
createRoute<dynamic>(arguments: {'a': 1}),
228227
isRoute(whereArguments: equals({'b': 1})),
229-
withMessage: "is a route where the route's `arguments` "
228+
withMessage:
229+
"is a route where the route's `arguments` "
230230
"is missing map key 'b'",
231231
);
232232
expectToFail(
@@ -243,19 +243,20 @@ is a route where the route's `name` is different.
243243
expect(createRoute<dynamic>(), isRoute(whereMaintainState: isTrue));
244244
});
245245

246-
test(
247-
'does not match anything that is not a route with matching '
246+
test('does not match anything that is not a route with matching '
248247
'maintainState argument', () {
249248
expectToFail(
250249
createRoute<dynamic>(),
251250
isRoute(whereMaintainState: isFalse),
252-
withMessage: 'is a route where `maintainState` '
251+
withMessage:
252+
'is a route where `maintainState` '
253253
'is true instead of false',
254254
);
255255
expectToFail(
256256
NonModalRoute(),
257257
isRoute(whereMaintainState: isTrue),
258-
withMessage: 'is a route where `maintainState` '
258+
withMessage:
259+
'is a route where `maintainState` '
259260
'is not a property on `NonModalRoute` and can only be used '
260261
'with `ModalRoute`s',
261262
);
@@ -275,19 +276,20 @@ is a route where the route's `name` is different.
275276
);
276277
});
277278

278-
test(
279-
'does not match anything that is not a route with matching '
279+
test('does not match anything that is not a route with matching '
280280
'fullscreenDialog argument', () {
281281
expectToFail(
282282
createRoute<dynamic>(fullscreenDialog: true),
283283
isRoute(whereFullscreenDialog: isFalse),
284-
withMessage: 'is a route where `fullscreenDialog` '
284+
withMessage:
285+
'is a route where `fullscreenDialog` '
285286
'is true instead of false',
286287
);
287288
expectToFail(
288289
NonModalRoute(),
289290
isRoute(whereFullscreenDialog: isFalse),
290-
withMessage: 'is a route where `fullscreenDialog` '
291+
withMessage:
292+
'is a route where `fullscreenDialog` '
291293
'is not a property on `NonModalRoute` and can only be used '
292294
'with `PageRoute`s',
293295
);

0 commit comments

Comments
 (0)