Skip to content

Commit 3a93704

Browse files
committed
style: misc
1 parent e15bbd0 commit 3a93704

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

test/src/services/jwt_auth_token_service_test.dart

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ void main() {
169169
),
170170
);
171171
verifyNever(
172-
() => mockUserRepository.read(id: any<String>(named: 'id')));
172+
() => mockUserRepository.read(id: any<String>(named: 'id')),
173+
);
173174
});
174175

175176
// Removed the duplicated and incorrect test case above this line.
@@ -190,7 +191,8 @@ void main() {
190191
),
191192
);
192193
verifyNever(
193-
() => mockUserRepository.read(id: any<String>(named: 'id')));
194+
() => mockUserRepository.read(id: any<String>(named: 'id')),
195+
);
194196
});
195197

196198
test('throws BadRequestException for token missing "sub" claim',
@@ -221,7 +223,8 @@ void main() {
221223
),
222224
);
223225
verifyNever(
224-
() => mockUserRepository.read(id: any<String>(named: 'id')));
226+
() => mockUserRepository.read(id: any<String>(named: 'id')),
227+
);
225228
});
226229

227230
test('rethrows NotFoundException if user from token not found', () async {
@@ -326,8 +329,9 @@ void main() {
326329
),
327330
),
328331
);
329-
verifyNever(() =>
330-
mockBlacklistService.blacklist(any<String>(), any<DateTime>()));
332+
verifyNever(
333+
() => mockBlacklistService.blacklist(any<String>(), any<DateTime>()),
334+
);
331335
});
332336

333337
test('throws InvalidInputException for token missing "jti" claim',
@@ -358,8 +362,9 @@ void main() {
358362
),
359363
),
360364
);
361-
verifyNever(() =>
362-
mockBlacklistService.blacklist(any<String>(), any<DateTime>()));
365+
verifyNever(
366+
() => mockBlacklistService.blacklist(any<String>(), any<DateTime>()),
367+
);
363368
});
364369

365370
test('throws InvalidInputException for token missing "exp" claim',
@@ -388,8 +393,9 @@ void main() {
388393
),
389394
),
390395
);
391-
verifyNever(() =>
392-
mockBlacklistService.blacklist(any<String>(), any<DateTime>()));
396+
verifyNever(
397+
() => mockBlacklistService.blacklist(any<String>(), any<DateTime>()),
398+
);
393399
});
394400

395401
test('rethrows HtHttpException from blacklist service', () async {

0 commit comments

Comments
 (0)