From df98219382d629235cee7565bb32b6f29a8903d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Pit-Claudel?= <clement.pit-claudel@epfl.ch>
Date: Thu, 12 Dec 2024 01:30:55 +0100
Subject: [PATCH] tests: Move most static functions to companion object

---
 jvm/src/test/scala/cs214/webapp/ServerSuite.scala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/jvm/src/test/scala/cs214/webapp/ServerSuite.scala b/jvm/src/test/scala/cs214/webapp/ServerSuite.scala
index 0206568..e451131 100644
--- a/jvm/src/test/scala/cs214/webapp/ServerSuite.scala
+++ b/jvm/src/test/scala/cs214/webapp/ServerSuite.scala
@@ -19,7 +19,7 @@ given unsafeURI: Conversion[String, Uri] with
 case class WebServerInfo(uri: String):
   override def toString = uri
 
-class ServerSuite extends munit.FunSuite:
+object ServerSuite:
   type Ping = String
   type Pong = String
   type State = String
@@ -62,7 +62,9 @@ class ServerSuite extends munit.FunSuite:
     println(f"Elapsed: ${(end - start) / 1000000} ms")
     result
 
+class ServerSuite extends munit.FunSuite:
   import sttp.client4.quick.*
+  import ServerSuite.*
 
   test("The main and app-selection pages respond to requests"):
     withServer: ws ?=>
-- 
GitLab