Skip to content

Commit 10e5a0f

Browse files
committed
test: improve wording for clarity
1 parent 4bc1f1e commit 10e5a0f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/auth/amplify_auth_cognito_test/test/plugin/fetch_current_device_test.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ void main() {
6161
expect(currentDeviceKey, currentDevice.id);
6262
});
6363

64-
test(
65-
'a DeviceNotTrackedException when current device key is null',
64+
test('throw a DeviceNotTrackedException when current device key is null',
6665
() async {
6766
await plugin.forgetDevice();
6867
await expectLater(
@@ -72,8 +71,7 @@ void main() {
7271
});
7372
});
7473

75-
group('should throw',
76-
() {
74+
group('should throw', () {
7775
setUp(() async {
7876
final mockIdp = MockCognitoIdentityProviderClient(
7977
getDevice: () async => throw AWSHttpException(
@@ -83,8 +81,7 @@ void main() {
8381
plugin.stateMachine.addInstance<CognitoIdentityProviderClient>(mockIdp);
8482
});
8583

86-
test('This test should have Cognito GetDevice throw a NetworkException',
87-
() async {
84+
test('a NetworkException', () async {
8885
await expectLater(
8986
plugin.fetchCurrentDevice,
9087
throwsA(isA<NetworkException>()),

0 commit comments

Comments
 (0)