We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef86663 + 900bcf7 commit f1bebfcCopy full SHA for f1bebfc
scautable/test/src/test.scala
@@ -58,6 +58,17 @@ class MySuite extends munit.FunSuite:
58
scautable(startSeq, true).toString()
59
)
60
}
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
72
test("one row as seq") {
73
val start = ScauTest(1, "2")
74
val startSeq = Seq(start)
0 commit comments