fix: handle escaped forward slashes by fast-json-format library upgrade

This commit is contained in:
lohit-bruno
2025-11-12 16:38:35 +05:30
parent 955d33f1fe
commit b7be6aacce
4 changed files with 10 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ post {
body:json {
{
"bigint": 1736184243098437392,
"unicode": ["\u4e00","\u4e8c","\u4e09"]
"unicode": ["\u4e00","\u4e8c","\u4e09"],
"forwardslashes": "\/url\/path\/"
}
}

View File

@@ -35,6 +35,9 @@ test.describe.serial('JSON Response Formatting', () => {
await expect(responseBody).toContainText('一');
await expect(responseBody).toContainText('二');
await expect(responseBody).toContainText('三');
// The response should handle escaped forward slashes
await expect(responseBody).toContainText('/url/path/');
});
});
});