mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 07:30:04 +00:00
fix(maps): narrow the PDF map container and assert the 3D toast by its key
The offscreen container is built inside buildGlMap's closure, where the let lost its narrowing; a const of its own keeps it an HTMLDivElement. The stage tests hand the stage a t that returns the key, so the toast reads map.webgl2.terrain there. One floating promise fewer lowers the eslint baseline to 164.
This commit is contained in:
@@ -940,7 +940,8 @@ describe('TourPlannerMapStage', () => {
|
||||
});
|
||||
|
||||
describe('3D without WebGL2', () => {
|
||||
const NO_3D = '3D needs WebGL2, which this browser does not offer. The map stays in 2D.';
|
||||
// The stage translates with the t it is handed, and stageProps hands it one that returns the key.
|
||||
const NO_3D = 'map.webgl2.terrain';
|
||||
|
||||
function renderWithToasts(tourPlanner: Planner) {
|
||||
return render(
|
||||
|
||||
Reference in New Issue
Block a user