fix(sonar): locale-aware sorts, linear share and redaction patterns, focus only on controls

This commit is contained in:
Maurice
2026-10-22 18:48:51 +02:00
parent e291735c95
commit c8ce36e9af
14 changed files with 290 additions and 94 deletions
@@ -29,6 +29,14 @@ describe('redactForProvider', () => {
});
});
it('ASTRED-003: masks an address inside a long run of address characters, and reads a run without one quickly', () => {
expect(redactForProvider('x'.repeat(50) + '.y@mail.example.test!')).toBe('[hidden]!');
const started = Date.now();
redactForProvider('a'.repeat(100000));
redactForProvider('a@'.repeat(50000));
expect(Date.now() - started).toBeLessThan(2000);
});
it("ASTRED-002: drops a booked place's picture and the trip's cover, wherever they sit", () => {
expect(
redactForProvider({