From 4a11cb6875e196297d44553c3f640d7bbb25256c Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 8 Aug 2023 12:05:43 +0100 Subject: Formattting --- server/test/src/handlers/GeminiHandlerSpec.scala | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'server/test/src/handlers/GeminiHandlerSpec.scala') diff --git a/server/test/src/handlers/GeminiHandlerSpec.scala b/server/test/src/handlers/GeminiHandlerSpec.scala index 158042c..8704db1 100644 --- a/server/test/src/handlers/GeminiHandlerSpec.scala +++ b/server/test/src/handlers/GeminiHandlerSpec.scala @@ -2,11 +2,11 @@ package net.usebox.gemini.server.handlers import java.net.URI +import net.usebox.gemini.server._ + import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers -import net.usebox.gemini.server._ - class GeminiHandlerSpec extends AnyFlatSpec with Matchers { val handler = new GeminiHandler(TestData.conf) @@ -87,9 +87,7 @@ class GeminiHandlerSpec extends AnyFlatSpec with Matchers { it should "include gemini params for gemini MIME type" in { handleWith( new GeminiHandler( - TestData.conf.copy(virtualHosts = - List(TestData.conf.virtualHosts(0).copy(geminiParams = Some("test"))) - ) + TestData.conf.copy(virtualHosts = List(TestData.conf.virtualHosts(0).copy(geminiParams = Some("test")))) ), "gemini://localhost/index.gmi" ) should matchPattern { @@ -188,9 +186,7 @@ class GeminiHandlerSpec extends AnyFlatSpec with Matchers { it should "return not found if directory listing is not enabled and no index" in { handleWith( new GeminiHandler( - TestData.conf.copy(virtualHosts = - List(TestData.conf.virtualHosts(0).copy(directoryListing = false)) - ) + TestData.conf.copy(virtualHosts = List(TestData.conf.virtualHosts(0).copy(directoryListing = false))) ), "gemini://localhost/dir/" ) should be(a[NotFound]) -- cgit v1.2.3