Skip to content

Commit

Permalink
fix failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiborta committed Aug 23, 2024
1 parent 5625a6a commit 53f6989
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/scala/scraml/SphereJsonSupportSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SphereJsonSupportSpec extends AnyFlatSpec with Matchers {
val generated = ModelGenRunner.run(DefaultModelGen)(params).unsafeRunSync()

generated.files match {
case noDiscBase :: _ :: _ :: baseType :: _ :: _ :: dataType :: emptyBase :: noProps :: _ :: someEnum :: _ :: _ :: _ :: _ :: _ :: _ :: Nil =>
case noDiscBase :: _ :: _ :: baseType :: _ :: _ :: dataType :: emptyBase :: noProps :: _ :: someEnum :: _ :: _ :: _ :: _ :: _ :: _ :: _ :: _ :: _ :: _ :: Nil =>
noDiscBase.source.source.toString() should be("sealed trait NoDiscriminatorBase")
noDiscBase.source.companion.map(_.toString()) should be(
Some(s"""object NoDiscriminatorBase {
Expand Down
4 changes: 4 additions & 0 deletions src/test/scala/scraml/libs/CirceJsonSupportSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,12 @@ class CirceJsonSupportSpec extends AnyFlatSpec with Matchers with SourceCodeForm
defaultProperty ::
parentWithOption ::
derivedWitRequired ::
keybasediscriminator ::
keybasewildcard ::
otherSub ::
mapLike ::
keybaseprefixstring ::
keybaseprefixint ::
packageObject ::
Nil =>
noDiscBase.source.source.toString().stripTrailingSpaces should be(
Expand Down

0 comments on commit 53f6989

Please sign in to comment.