Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
test(editor): make content-integrity catch backslash-punct load loss
Sergey Kozyrenko4ddb76f9ffbe
diff --git a/frontend/src/components/shared/markdown-editor/editor-content-integrity.test.ts b/frontend/src/components/shared/markdown-editor/editor-content-integrity.test.tsindex 18ba0dae..3a487462 100644--- a/frontend/src/components/shared/markdown-editor/editor-content-integrity.test.ts+++ b/frontend/src/components/shared/markdown-editor/editor-content-integrity.test.ts@@ -44,6 +44,9 @@ const ATOMS = ['<br>','match \\d+ then \\w*','C:\\Users\\bob\\a.txt',+ 'regex \\.php files',+ 'glob \\* and \\?',+ 'escaped \\[ \\| \\+ here','<script>','AT&T','x & y',@@ -104,4 +107,17 @@ describe('generative content-integrity — atoms survive load↔serialize across}}});++ // Source-fidelity is strictly stronger than the survives/converges oracles above: a backslash-escaped+ // punctuation char is dropped on the FIRST load and then converges, so convergence passes while the byte+ // is already gone. Assert byte-exact round-trip for the escape class directly.+ it.each([+ 'regex \\.php and \\d+',+ 'glob \\* \\? and range \\[a-z\\]',+ 'table \\| pipe and plus \\+',+ 'unc \\\\server\\\\share double \\\\',+ '\\* line-leading star, not a bullet',+ ])('round-trips %s byte-identical', (source) => {+ expect(roundTrip(source)).toBe(source);+ });});