Skip to content

Commit

Permalink
gen: add missing import to other test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nafg committed Sep 19, 2024
1 parent 4562ded commit f5dec23
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package test.api.v1

import test.component._
import zio.schema._

object Users {
import zio.http._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package test.api.v1

import test.component._
import zio.schema._

object Users {
import zio.http._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package test.api.v1

import test.component._
import zio.schema._

object Keywords {
import zio.http._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ object EndpointGenSpec extends ZIOSpecDefault {
val expected = Code.File(
List("api", "v1", "Users.scala"),
pkgPath = List("api", "v1"),
imports = List(Code.Import.FromBase(path = "component._")),
imports = List(Code.Import.FromBase(path = "component._"), Code.Import.Absolute("zio.schema._")),
objects = List(
Code.Object(
"Users",
Expand Down Expand Up @@ -1026,7 +1026,7 @@ object EndpointGenSpec extends ZIOSpecDefault {
val expected = Code.File(
List("api", "v1", "Users.scala"),
pkgPath = List("api", "v1"),
imports = List(Code.Import.FromBase(path = "component._")),
imports = List(Code.Import.FromBase(path = "component._"), Code.Import.Absolute("zio.schema._")),
objects = List(
Code.Object(
"Users",
Expand Down

0 comments on commit f5dec23

Please sign in to comment.