Skip to content

Commit

Permalink
Add aspect ratio test
Browse files Browse the repository at this point in the history
  • Loading branch information
Georges-GNM committed Nov 19, 2024
1 parent 405f212 commit d707e52
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,5 +473,13 @@ class CollectionTest extends AnyFreeSpec with Matchers with MockitoSugar with On
)
FaciaContentUtils.headline(FaciaContentUtils.supporting(result.head).head) should be ("straight banana")
}
"AspectRatio.getAspectRatio" in {
val defaultCollectionType = collectionConfig.collectionType

CollectionConfig.AspectRatio.getAspectRatio("scrollable/feature") should be (CollectionConfig.AspectRatio.Portrait45)
CollectionConfig.AspectRatio.getAspectRatio("scrollable/small") should be (CollectionConfig.AspectRatio.Landscape54)
CollectionConfig.AspectRatio.getAspectRatio("scrollable/highlights") should be (CollectionConfig.AspectRatio.Square)
CollectionConfig.AspectRatio.getAspectRatio(defaultCollectionType) should be (CollectionConfig.AspectRatio.Landscape53)
}
}
}

0 comments on commit d707e52

Please sign in to comment.