feat: more easter eggs + version checking
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user