Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scalafmt-core to 3.7.0 #737

Merged
merged 3 commits into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.7.0
2c02dc2aa89af5c3322d7ab66af6731f9d674b74
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.6.1
version = 3.7.0
style = defaultWithAlign
maxColumn = 100
runner.dialect = scala3
Expand Down
18 changes: 10 additions & 8 deletions src/test/scala/microsites/DocsLayoutTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,25 @@ class DocsLayoutTest extends AnyFunSuite with Checkers with Matchers with Arbitr

test("render should return a html document") {

val property = forAll { settings: MicrositeSettings ⇒
val layout = new DocsLayout(settings)
val property = forAll {
settings: MicrositeSettings ⇒
val layout = new DocsLayout(settings)

layout.render.tag shouldBe "html"
!layout.render.void
layout.render.tag shouldBe "html"
!layout.render.void
}

check(property)
}

test("sideBarAndContent should return at least a div container") {

val property = forAll { settings: MicrositeSettings ⇒
val layout = new DocsLayout(settings)
val property = forAll {
settings: MicrositeSettings ⇒
val layout = new DocsLayout(settings)

layout.sideBarAndContent.tag shouldBe "div"
!layout.sideBarAndContent.void
layout.sideBarAndContent.tag shouldBe "div"
!layout.sideBarAndContent.void
}

check(property)
Expand Down
18 changes: 10 additions & 8 deletions src/test/scala/microsites/HomeLayoutTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,25 @@ class HomeLayoutTest extends AnyFunSuite with Checkers with Matchers with Arbitr

test("render should return a html document") {

val property = forAll { settings: MicrositeSettings ⇒
val layout = new HomeLayout(settings)
val property = forAll {
settings: MicrositeSettings ⇒
val layout = new HomeLayout(settings)

layout.render.tag shouldBe "html"
!layout.render.void
layout.render.tag shouldBe "html"
!layout.render.void
}

check(property)
}

test("homeHeader should return a `header` TypeTag") {

val property = forAll { settings: MicrositeSettings ⇒
val layout = new HomeLayout(settings)
val property = forAll {
settings: MicrositeSettings ⇒
val layout = new HomeLayout(settings)

layout.homeHeader.tag shouldBe "header"
!layout.homeHeader.void
layout.homeHeader.tag shouldBe "header"
!layout.homeHeader.void
}

check(property)
Expand Down
9 changes: 5 additions & 4 deletions src/test/scala/microsites/MenuPartialLayoutTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ class MenuPartialLayoutTest extends AnyFunSuite with Checkers with Matchers with

test("render should return a div container") {

val property = forAll { settings: MicrositeSettings ⇒
val layout = new MenuPartialLayout(settings)
val property = forAll {
settings: MicrositeSettings ⇒
val layout = new MenuPartialLayout(settings)

layout.render.tag shouldBe "div"
!layout.render.void
layout.render.tag shouldBe "div"
!layout.render.void
}

check(property)
Expand Down
18 changes: 10 additions & 8 deletions src/test/scala/microsites/PageLayoutTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,25 @@ class PageLayoutTest extends AnyFunSuite with Checkers with Matchers with Arbitr

test("render should return a html document") {

val property = forAll { settings: MicrositeSettings ⇒
val layout = new PageLayout(settings)
val property = forAll {
settings: MicrositeSettings ⇒
val layout = new PageLayout(settings)

layout.render.tag shouldBe "html"
!layout.render.void
layout.render.tag shouldBe "html"
!layout.render.void
}

check(property)
}

test("homeHeader should return a `header` TypeTag") {

val property = forAll { settings: MicrositeSettings ⇒
val layout = new PageLayout(settings)
val property = forAll {
settings: MicrositeSettings ⇒
val layout = new PageLayout(settings)

layout.pageHeader.tag shouldBe "header"
!layout.pageHeader.void
layout.pageHeader.tag shouldBe "header"
!layout.pageHeader.void
}

check(property)
Expand Down