feat: add Nepal flood incident scene

This commit is contained in:
manjunath22466 committed 2026-09-15 19:48:11 +05:30
1 parent 76c20be277
commit 60768ccc0b
48 files changed
+15431 -161

No files matched your search

+7 -1
View File
@@ -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 });