Analyse: Messdienst: Heatmap-Pfad wie gespeicherter Pfad, Tests für Kodierung und Stunde
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
96409c6306
commit
a73e0be952
4 files changed
+35
-3
No files matched your search
@@ -150,3 +150,11 @@ test('Heatmap: gleiche Stunde (ts-Gleichstand), Limit schneidet über die niedri
|
||||
assert.ok(!j.points.some((p) => p.x === 0.99));
|
||||
s.close();
|
||||
});
|
||||
|
||||
test('Heatmap: Token-Pfad mit Kennung findet die als :id gespeicherten Klicks', async () => {
|
||||
const s = await setup();
|
||||
s.db.prepare('INSERT INTO clicks (site, ts, path, vp, x, y) VALUES (?,?,?,?,?,?)').run(KEY, NOW - 1000, '/kunde/:id', 'd', 0.4, 0.6);
|
||||
const j = await (await s.get(tok({ path: '/kunde/12345678' }))).json();
|
||||
assert.deepEqual(j, { points: [{ x: 0.4, y: 0.6 }] });
|
||||
s.close();
|
||||
});
|
||||
Reference in new issue
Block a user