From 541b0eb5787065696126069a9ca56e641cbc2d55 Mon Sep 17 00:00:00 2001 From: ankit-songara Date: Fri, 17 Jul 2026 10:19:42 +0530 Subject: [PATCH] fix(render): use assert.JSONEq for AsciiJSON non-BMP test golangci-lint's testifylint rule flags comparing two JSON strings with assert.Equal, so switch to assert.JSONEq to satisfy CI. --- render/render_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/render_test.go b/render/render_test.go index 745422d2..4cfe3925 100644 --- a/render/render_test.go +++ b/render/render_test.go @@ -272,7 +272,7 @@ func TestRenderAsciiJSONNonBMP(t *testing.T) { // U+1F600 is outside the Basic Multilingual Plane and must be encoded as // a UTF-16 surrogate pair (RFC 8259 ยง7), not a single \u escape with 5+ // hex digits. - assert.Equal(t, "{\"msg\":\"\\ud83d\\ude00\"}", w.Body.String()) + assert.JSONEq(t, "{\"msg\":\"\\ud83d\\ude00\"}", w.Body.String()) var decoded map[string]string require.NoError(t, json.Unmarshal(w.Body.Bytes(), &decoded))