added support for multiple accounts with an account switcher in settings

This commit is contained in:
2026-09-27 14:54:10 +02:00
parent 5e65c4671a
commit 27563a6dc1
33 changed files with 1801 additions and 462 deletions
+16
View File
@@ -18,4 +18,20 @@ void main() {
expect(CacheStore.parse('abc\n{}'), isNull);
});
});
group('CacheStore.directoryName', () {
test('keeps the original directory for the pre-multi-account account', () {
expect(CacheStore.directoryName(''), 'request_cache');
});
test('separates accounts and the signed-out state', () {
final names = {
CacheStore.directoryName(''),
CacheStore.directoryName('a1b2'),
CacheStore.directoryName('c3d4'),
CacheStore.directoryName(null),
};
expect(names, hasLength(4));
});
});
}