mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
fix(status): preserve cached aircraft age and independent refresh errors
This commit is contained in:
1 parent
8eb6d09105
commit
dae5f45426
9 files changed
+174
-14
No files matched your search
@@ -699,3 +699,14 @@ test('a guidance status such as zoom-in never counts as a participant failure',
|
||||
assert.equal(state.terminal, 'complete');
|
||||
assert.equal(presentLoadingFeedback(state, settled, 1500).label, 'MAPPED SITES LOADED');
|
||||
});
|
||||
|
||||
|
||||
test('guidance does not suppress independent manager and feed failures', () => {
|
||||
for (const field of ['lastError', 'managerRefreshError']) {
|
||||
const record = normalizeLayerLoading({
|
||||
id: 'militaryInstallations', enabled: true,
|
||||
stats: { status: 'zoom-in', error: 'Zoom in to load mapped sites.', [field]: 'Network unavailable' },
|
||||
});
|
||||
assert.equal(record.error, 'Network unavailable');
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user