Skip to content

Commit

Permalink
consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
googley42 committed Oct 13, 2024
1 parent 846da12 commit 2a011dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS
(a: TraitWithMiddleTrait) => a.isInstanceOf[TraitLeaf.type]
)

val caseMiddleTrait = Schema.Case[TraitWithMiddleTrait, MiddleTrait](
val middleTraitCase = Schema.Case[TraitWithMiddleTrait, MiddleTrait](
"MiddleTrait",
middleTraitSchema,
(a: TraitWithMiddleTrait) => a.asInstanceOf[MiddleTrait],
Expand All @@ -600,7 +600,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS
Schema.Enum2[TraitLeaf.type, MiddleTrait, TraitWithMiddleTrait](
TypeId.parse("zio.schema.DeriveSchemaSpec.TraitWithMiddleTrait"),
traitLeafCase,
caseMiddleTrait
middleTraitCase
)

assert(derived)(hasSameSchema(expected))
Expand Down

0 comments on commit 2a011dd

Please sign in to comment.