fix(profiles): avoid placeholder profile on first launch

This commit is contained in:
edde746
2026-05-06 00:32:15 +02:00
parent 91c23786f2
commit da7aef4548
2 changed files with 8 additions and 23 deletions
@@ -47,6 +47,14 @@ void main() {
});
group('ConnectionBootstrap.migrateLegacyPlexAccount', () {
test('run leaves fresh installs without a placeholder local profile', () async {
await bootstrap.run();
expect(await profileRegistry.list(), isEmpty);
expect(storage.getActiveProfileId(), isNull);
expect(storage.prefs.getBool('profile_migration_v1_done'), isTrue);
});
test('returns null when no legacy Plex token is stored', () async {
final result = await bootstrap.migrateLegacyPlexAccount();
expect(result, isNull);