File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/auth/amplify_auth_cognito_test/test/plugin Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,7 @@ void main() {
61
61
expect (currentDeviceKey, currentDevice.id);
62
62
});
63
63
64
- test (
65
- 'a DeviceNotTrackedException when current device key is null' ,
64
+ test ('throw a DeviceNotTrackedException when current device key is null' ,
66
65
() async {
67
66
await plugin.forgetDevice ();
68
67
await expectLater (
@@ -72,8 +71,7 @@ void main() {
72
71
});
73
72
});
74
73
75
- group ('should throw' ,
76
- () {
74
+ group ('should throw' , () {
77
75
setUp (() async {
78
76
final mockIdp = MockCognitoIdentityProviderClient (
79
77
getDevice: () async => throw AWSHttpException (
@@ -83,8 +81,7 @@ void main() {
83
81
plugin.stateMachine.addInstance <CognitoIdentityProviderClient >(mockIdp);
84
82
});
85
83
86
- test ('This test should have Cognito GetDevice throw a NetworkException' ,
87
- () async {
84
+ test ('a NetworkException' , () async {
88
85
await expectLater (
89
86
plugin.fetchCurrentDevice,
90
87
throwsA (isA <NetworkException >()),
You can’t perform that action at this time.
0 commit comments