From ba726a2c0941ee5327d90de648149517d2ee0aa8 Mon Sep 17 00:00:00 2001 From: mihajlo-ra92 <94182463+mihajlo-ra92@users.noreply.github.com> Date: Sat, 24 Jun 2023 16:36:22 +0200 Subject: [PATCH] Remove newline after && (#268) --- .../zio/elasticsearch/HighlightsSpec.scala | 53 +++++++++---------- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/modules/library/src/test/scala/zio/elasticsearch/HighlightsSpec.scala b/modules/library/src/test/scala/zio/elasticsearch/HighlightsSpec.scala index 5870acff2..ce03fd814 100644 --- a/modules/library/src/test/scala/zio/elasticsearch/HighlightsSpec.scala +++ b/modules/library/src/test/scala/zio/elasticsearch/HighlightsSpec.scala @@ -41,30 +41,26 @@ object HighlightsSpec extends ZIOSpecDefault { fields = Chunk(HighlightField("day_of_week")) ) ) - ) && - assert(highlightWithHighlight)( + ) && assert(highlightWithHighlight)( equalTo( Highlights( fields = Chunk(HighlightField("first_name"), HighlightField("day_of_week")) ) ) - ) && - assert(highlightWithGlobalConfig)( + ) && assert(highlightWithGlobalConfig)( equalTo( Highlights( fields = Chunk(HighlightField("day_of_week")), config = Map("type" -> Str("plain")) ) ) - ) && - assert(highlightWithConfig)( + ) && assert(highlightWithConfig)( equalTo( Highlights( fields = Chunk(HighlightField("day_of_week", Map("type" -> Str("plain")))) ) ) - ) && - assert( + ) && assert( highlightWithConfigAndGlobalConfig )( equalTo( @@ -73,22 +69,19 @@ object HighlightsSpec extends ZIOSpecDefault { config = Map("pre_tags" -> Arr(Str(""))) ) ) - ) && - assert(highlightOfStringField)( + ) && assert(highlightOfStringField)( equalTo( Highlights( fields = Chunk(HighlightField("stringField")) ) ) - ) && - assert(highlightOfStringFieldWithHighlight)( + ) && assert(highlightOfStringFieldWithHighlight)( equalTo( Highlights( fields = Chunk(HighlightField("intField"), HighlightField("stringField")) ) ) - ) && - assert( + ) && assert( highlightOfNestedFieldWithGlobalConfig )( equalTo( @@ -97,8 +90,7 @@ object HighlightsSpec extends ZIOSpecDefault { config = Map("type" -> Str("plain")) ) ) - ) && - assert(highlightOfStringFieldWithGlobalConfig)( + ) && assert(highlightOfStringFieldWithGlobalConfig)( equalTo( Highlights( fields = Chunk(HighlightField("stringField")), @@ -240,26 +232,31 @@ object HighlightsSpec extends ZIOSpecDefault { equalTo( expected.toJson ) - ) && - assert(highlightWithHighlight.toJson)( + ) && assert(highlightWithHighlight.toJson)( equalTo( expectedWithFirstName.toJson ) - ) && - assert(highlightWithHighlightAndGlobalConfig.toJson)( + ) && assert(highlightWithHighlightAndGlobalConfig.toJson)( equalTo( expectedPlainWithFirstName.toJson ) - ) && - assert(highlightWithConfig.toJson)( - equalTo(expectedPlainWithRequiredFieldMatch.toJson) - ) && - assert(highlightWithConfigAndHighlight.toJson)(equalTo(expectedPlainWithMatchedFields.toJson)) && - assert(highlightWithConfigHighlightAndExplicitFieldOrder.toJson)( - equalTo(expectedPlainWithArrayOfFields.toJson) + ) && assert(highlightWithConfig.toJson)( + equalTo( + expectedPlainWithRequiredFieldMatch.toJson + ) + ) && assert(highlightWithConfigAndHighlight.toJson)( + equalTo( + expectedPlainWithMatchedFields.toJson + ) + ) && assert(highlightWithConfigHighlightAndExplicitFieldOrder.toJson)( + equalTo( + expectedPlainWithArrayOfFields.toJson + ) ) && assert(highlightWithMultipleConfig.toJson)( - equalTo(expectedFvhType.toJson) + equalTo( + expectedFvhType.toJson + ) ) } )