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
\nyears ago our fathers
\nbrought forth " - + "on this continent
\n"; + "Four score and seven
\\nyears ago our fathers
\\nbrought 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