Skip to content

Commit a7c91f6

Browse files
committed
format document
1 parent 48bd503 commit a7c91f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/gotrue/test/src/gotrue_mfa_api_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ void main() {
8585
// Create a challenge first
8686
final challengeRes = await client.mfa.challenge(factorId: factorId1);
8787

88-
final res = await client.mfa
89-
.verify(factorId: factorId1, challengeId: challengeRes.id, code: getTOTP());
88+
final res = await client.mfa.verify(
89+
factorId: factorId1, challengeId: challengeRes.id, code: getTOTP());
9090

9191
expect(client.currentSession?.accessToken, res.accessToken);
9292
expect(client.currentUser, res.user);
@@ -155,20 +155,20 @@ void main() {
155155

156156
// Should have 1 phone factor (unverified) and 0 verified phone factors
157157
expect(listRes.all.length, greaterThanOrEqualTo(1));
158-
158+
159159
// Find the phone factor we just enrolled
160160
final phoneFactor = listRes.all.firstWhere(
161161
(factor) => factor.factorType == FactorType.phone,
162162
);
163-
163+
164164
expect(phoneFactor.id, enrollRes.id);
165165
expect(phoneFactor.factorType, FactorType.phone);
166166
expect(phoneFactor.friendlyName, 'TestPhone');
167167
expect(phoneFactor.status, FactorStatus.unverified);
168-
168+
169169
// Verified phone factors should be empty since we haven't verified yet
170170
expect(listRes.phone.length, 0);
171-
171+
172172
// But the factor should appear in the all list
173173
expect(listRes.all.any((f) => f.factorType == FactorType.phone), true);
174174
});

0 commit comments

Comments
 (0)