mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
feat: add Nepal flood incident scene
This commit is contained in:
1 parent
76c20be277
commit
60768ccc0b
48 files changed
+15431
-161
No files matched your search
@@ -66,7 +66,7 @@ test('share links parse explicit celestial on and off states', () => {
|
||||
});
|
||||
|
||||
test('unknown-only v2 layer tokens are invalid, while historical l fields stay inert', () => {
|
||||
const invalid = makeManager('#v=2&lat=10&lon=20&l=z').parseInitialHash();
|
||||
const invalid = makeManager('#v=2&lat=10&lon=20&l=unknown').parseInitialHash();
|
||||
assert.equal(invalid.layerState, null);
|
||||
assert.equal(invalid.layerStateInvalid, true);
|
||||
for (const hash of ['#lat=10&lon=20&l=z', '#v=1&lat=10&lon=20&l=z']) {
|
||||
@@ -76,6 +76,12 @@ test('unknown-only v2 layer tokens are invalid, while historical l fields stay i
|
||||
}
|
||||
});
|
||||
|
||||
test('Nepal locator token is valid in v2 share links', () => {
|
||||
const parsed = makeManager('#v=2&lat=10&lon=20&l=z').parseInitialHash();
|
||||
assert.deepEqual(parsed.layerState.enabledLayerIds, ['bhote-koshi-locator']);
|
||||
assert.equal(parsed.layerStateInvalid, false);
|
||||
});
|
||||
|
||||
test('share-link serialization emits the current celestial state', () => {
|
||||
const manager = makeManager();
|
||||
manager.onToggleChange(false, false, { celestialRingEnabled: false });
|
||||
|
||||
Reference in new issue
Block a user