diff --git a/test/integration/ErrorTests/ErrorHandling.test.js b/test/integration/ErrorTests/ErrorHandling.test.js index 855043055..99d3be528 100644 --- a/test/integration/ErrorTests/ErrorHandling.test.js +++ b/test/integration/ErrorTests/ErrorHandling.test.js @@ -718,34 +718,40 @@ describe('Error Tests - Error Handling & Validation', () => { } }); - test('Error_SQLInjectionAttempt_SafelyHandled', async () => { + // SQL/XSS-style strings (e.g. "'; DROP TABLE", "') + .where('title', '100% a+b #1') .limit(3) .toJSON() .find(); - // Should treat as normal string AssertionHelper.assertQueryResultStructure(result); - console.log('✅ XSS attempt safely handled'); + console.log('✅ Percent, plus and hash in value handled safely'); }); test('Error_UnicodeInQuery_HandlesCorrectly', async () => {