Skip to content

Commit

Permalink
Fix MediaTypeTest nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattking committed Oct 29, 2024
1 parent c6eec3b commit f5968b7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/test/kotlin/com/sainsburys/k2zpl/command/MediaTypeTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ class MediaTypeTest : DescribeSpec({
subject.copy(type = type).testBuildString() shouldBe "^MT${type}"
}
}
describe("mediaType extension function") {
it("outputs correct command") {
table(
headers("media type"),
ZplMediaType.entries.map { row(it) }
).forAll { type ->
val result = k2zpl {
mediaType(type)
}
result shouldBe "^MT${type}\n"
}
describe("mediaType extension function") {
it("outputs correct command") {
table(
headers("media type"),
ZplMediaType.entries.map { row(it) }
).forAll { type ->
val result = k2zpl {
mediaType(type)
}
result shouldBe "^MT${type}\n"
}
}
}
Expand Down

0 comments on commit f5968b7

Please sign in to comment.