Skip to content
Snippets Groups Projects
Commit df982193 authored by Clément Pit-Claudel's avatar Clément Pit-Claudel
Browse files

tests: Move most static functions to companion object

parent 4a4490f0
No related branches found
No related tags found
1 merge request!32Add simple tests
......@@ -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 ?=>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment