mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 10:12:18 +00:00
- src/geo drops the ported debug argument checks and the tests that bitExact already covers; package boundaries accept a directory entry, so src/geo/ is listed once per group. - Cesium no longer carries movers and lines nobody draws with: they are optional engine capabilities. The fake engine and the Cesium camera use the shared cameraMath; unused contract tables, clock.ticked, the 'finest' surface detail and Navara click statistics are gone. - ALPR keeps one overlay core and one presentation model for both engines, bikeshare one station bookkeeping, the Navara ground effects one definition helper; image atlases, view centres, mover banks and colours are shared. - The legacy switch route, the clock offset and rate controls and other unused exports are removed. - The acceptance runs the Navara draw, geo import and scope checks; scenarios use the harness switch and page helpers; the main chunk check keeps the size budget only and runs once in CI.
17 lines
542 B
JavaScript
17 lines
542 B
JavaScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { createAppClock } from '../../time/clock.js';
|
|
import { createNavaraClock } from './clock.js';
|
|
|
|
test('beginFrame latches the app clock', () => {
|
|
let wall = 10_000;
|
|
const appClock = createAppClock({ now: () => wall });
|
|
const { clock, beginFrame } = createNavaraClock({ appClock });
|
|
assert.equal(clock.frameTime(), 10_000);
|
|
wall = 10_016;
|
|
beginFrame();
|
|
wall = 10_020;
|
|
assert.equal(clock.frameTime(), 10_016);
|
|
assert.equal(clock.now(), 10_020);
|
|
});
|