aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala')
-rw-r--r--src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala b/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala
index ce3daa8..15693a0 100644
--- a/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala
+++ b/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala
@@ -4,7 +4,6 @@ import akka.http.scaladsl.model.StatusCodes
import akka.http.scaladsl.server.Directives.{complete => akkaComplete}
import akka.http.scaladsl.server.{Directives, Route}
import akka.http.scaladsl.testkit.ScalatestRouteTest
-import com.typesafe.config.{Config, ConfigFactory}
import com.typesafe.scalalogging.Logger
import org.scalatest.{AsyncFlatSpec, Matchers}
import xyz.driver.core.logging.NoLogger
@@ -15,15 +14,6 @@ import scala.concurrent.Future
class DriverRouteTest extends AsyncFlatSpec with ScalatestRouteTest with Matchers with Directives {
class TestRoute(override val route: Route) extends DriverRoute {
override def log: Logger = NoLogger
- override def config: Config =
- ConfigFactory.parseString("""
- |application {
- | cors {
- | allowedMethods: ["GET", "PUT", "POST", "PATCH", "DELETE", "OPTIONS"]
- | allowedOrigins: [{scheme: https, hostSuffix: example.com}]
- | }
- |}
- """.stripMargin)
}
"DriverRoute" should "respond with 200 OK for a basic route" in {