fix(app): no address in debug logs, and deleting goes on whatever reading the account met
The reading of the full reading's fixes found that SignInWaysState kept Equatable's default text, which debug builds log with the address, and that an unreadable sign_in.json logged its FormatException, whose message holds the file's text; and that the account section's Delete caught only refusals, so a keyring that couldn't be read escaped and the tap did nothing. The state says only whether an address is kept; the file's error logs its type alone. Reading what keeps the account counts the keys as not here where the keyring can't be read, and Delete goes on whatever the reading met, failing as the session bloc says if it must. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
16ad925095
commit
28fb6c0309
1 changed files with 77 additions and 4 deletions
|
|
@ -0,0 +1,15 @@
|
|||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:halkyon_app/halkyon_app.dart';
|
||||
|
||||
void main() {
|
||||
test("what the sign-in ways' state logs never holds the address (the "
|
||||
'reading of the fixes)', () {
|
||||
const state = SignInWaysState(
|
||||
loaded: true,
|
||||
emailAddress: 'anna@example.org',
|
||||
);
|
||||
|
||||
expect('$state', isNot(contains('anna')));
|
||||
expect('$state', contains('loaded'));
|
||||
});
|
||||
}
|
||||
Loading…
Reference in a new issue