Skip to content

Commit f1bebfc

Browse files
authored
Merge pull request #38 from IlliaDhD/1-test-task
Test task
2 parents ef86663 + 900bcf7 commit f1bebfc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scautable/test/src/test.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ class MySuite extends munit.FunSuite:
5858
scautable(startSeq, true).toString()
5959
)
6060
}
61+
62+
test("one row as seq with custom headers") {
63+
val start = ScauTest(1, "2")
64+
val startSeq = Seq(start)
65+
val headers = List("firstHeader", "secondHeader")
66+
assertEquals(
67+
"""<table id="scautable" class="display"><thead><tr><th>firstHeader</th><th>secondHeader</th></tr></thead><tbody><tr><td>1</td><td>2</td></tr></tbody></table>""",
68+
scautable(startSeq, true, headers).toString()
69+
)
70+
}
71+
6172
test("one row as seq") {
6273
val start = ScauTest(1, "2")
6374
val startSeq = Seq(start)

0 commit comments

Comments
 (0)