mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 07:53:09 +00:00
fix(sonar): locale-aware sorts, linear share and redaction patterns, focus only on controls
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user