Skip to content

Commit 900bcf7

Browse files
committed
added: test for custom headers
1 parent ef86663 commit 900bcf7

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)