mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Open the cockpit on a tracked Navara aircraft
This commit is contained in:
1 parent
8b179a7e01
commit
2087b55b47
19 files changed
+142
-65
No files matched your search
@@ -587,3 +587,12 @@ test('session bookkeeping ignores programmatic origins, non-visibility events, a
|
||||
}), false);
|
||||
assert.equal(snapshot.userAdded.size, 0);
|
||||
});
|
||||
|
||||
test('direct aircraft entry on Navara needs an enabled feed and an idle Context', () => {
|
||||
const input = { standaloneAircraft: true, contextMode: null, flightsEnabled: true };
|
||||
assert.equal(cockpitEntryAllowed(input), true);
|
||||
assert.equal(cockpitEntryAllowed({ ...input, flightsEnabled: false, militaryEnabled: true }), true);
|
||||
assert.equal(cockpitEntryAllowed({ ...input, flightsEnabled: false }), false);
|
||||
assert.equal(cockpitEntryAllowed({ ...input, contextModeChanging: true }), false);
|
||||
assert.equal(cockpitEntryAllowed({ ...input, contextMode: 'space-missions' }), false);
|
||||
});
|
||||
Reference in new issue
Block a user