Skip to content

Commit

Permalink
fix: fixing formatting in i-test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
hahnandrew committed Jun 24, 2024
1 parent cb9737d commit c0ef42f
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,14 @@ void main() {
});

asyncTest(
'fetchCurrentDevice throws a DeviceNotTrackedException when device is forgotton.',
(_) async {
expect(await getDeviceState(), DeviceState.remembered);
await Amplify.Auth.forgetDevice();
expect(
() async => Amplify.Auth.fetchCurrentDevice(),
throwsA(isA<DeviceNotTrackedException>),
);
'fetchCurrentDevice throws a DeviceNotTrackedException when device is forgotton.',
(_) async {
expect(await getDeviceState(), DeviceState.remembered);
await Amplify.Auth.forgetDevice();
expect(
() async => Amplify.Auth.fetchCurrentDevice(),
throwsA(isA<DeviceNotTrackedException>),
);
});

asyncTest(
Expand Down

0 comments on commit c0ef42f

Please sign in to comment.