mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
test(dawarich): take clock times out before looking for coordinates
The privacy check looks for the fixture's latitude 52.52 in every stored row, and a timestamp written at :52.52x seconds holds the same digits. It failed once in CI with no coordinate stored. Clock times are masked first; a coordinate in any field is still found.
This commit is contained in:
1 parent
cd98db82eb
commit
a79a04f3ef
1 file changed
+6
-1
@@ -304,7 +304,12 @@ describe("Dawarich daily values", () => {
|
||||
UNION ALL
|
||||
SELECT row_to_json(s)::text FROM "integration_statuses" s
|
||||
`;
|
||||
const dump = rows.map((r) => r.row).join("\n");
|
||||
// Clock times go first: a timestamp written at :52.52x seconds holds the
|
||||
// latitude's digits and failed the check without any coordinate stored.
|
||||
const dump = rows
|
||||
.map((r) => r.row)
|
||||
.join("\n")
|
||||
.replace(/\d{2}:\d{2}:\d{2}\.\d+/g, "<time>");
|
||||
for (const leak of [
|
||||
"Home Sweet",
|
||||
"Office Tower",
|
||||
|
||||
Reference in new issue
Block a user