From c73f0ddeeed3d8a34f48a4b4a3c2dfbc675daf89 Mon Sep 17 00:00:00 2001 From: John Niang Date: Wed, 21 May 2025 10:37:04 +0800 Subject: [PATCH] Upgrade JSONAssert to 2.0-rc1 --- .../test/java/run/halo/app/content/ContentRequestTest.java | 6 +++--- gradle.properties | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/application/src/test/java/run/halo/app/content/ContentRequestTest.java b/application/src/test/java/run/halo/app/content/ContentRequestTest.java index 313073527..3683db739 100644 --- a/application/src/test/java/run/halo/app/content/ContentRequestTest.java +++ b/application/src/test/java/run/halo/app/content/ContentRequestTest.java @@ -42,10 +42,10 @@ class ContentRequestTest { @Test void toSnapshot() throws JSONException { String expectedContentPath = - "

Four score and seven

\n

years ago our fathers

\n
\n

brought forth " - + "on this continent

\n"; + "

Four score and seven

\\n

years ago our fathers

\\n
\\n

brought forth " + + "on this continent

\\n"; String expectedRawPatch = - "Four score and seven\nyears ago our fathers\n\nbrought forth on this continent\n"; + "Four score and seven\\nyears ago our fathers\\n\\nbrought forth on this continent\\n"; Snapshot snapshot = contentRequest.toSnapshot(); snapshot.getMetadata().setName("7b149646-ac60-4a5c-98ee-78b2dd0631b2"); JSONAssert.assertEquals(JsonUtils.objectToJson(snapshot), diff --git a/gradle.properties b/gradle.properties index 0eddb3b23..a56d69f83 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,3 @@ version=2.21.0-SNAPSHOT r2dbc-mysql.version=1.4.0 +jsonassert.version=2.0-rc1