feat: more easter eggs + version checking

This commit is contained in:
2026-10-27 00:17:18 +01:00
parent 4d9ba67eb1
commit 1aee0541c4
14 changed files with 178 additions and 6 deletions
+16
View File
@@ -243,6 +243,22 @@ void main() {
expect(await service.isConfigured, false);
});
test('stops syncing but keeps the token when the app is too old', () async {
server.syncResponse = http.Response(
jsonEncode({
'error': {'code': 'app_update_required', 'message': 'Update'},
}),
426,
);
await service.sync();
await pumpEventQueue();
expect(eventTypes(), [RemoteSyncEventType.updateRequired]);
expect(events.single.message, 'Update');
expect(await service.isConfigured, true);
});
test('creates planned tabs that are not open yet, once', () async {
await barTabService.createTab(customerName: 'Alice');
server.respondWith({