Skip to content

Commit 7e338c0

Browse files
committed
simplified formatting test
1 parent 3034efb commit 7e338c0

File tree

1 file changed

+3
-5
lines changed
  • core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/api

1 file changed

+3
-5
lines changed

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/api/format.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,9 @@ class FormatTests : TestBase() {
333333
.rename("cityCopy").into("city")
334334

335335
val formatted = df.format("city").with { bold and italic and textColor(green) }
336-
val html =
337-
formatted.toStandaloneHtml() + // expand the nested dataframes so we can see the difference
338-
DataFrameHtmlData(script = "document.querySelectorAll('a.expander').forEach(a => a.click());")
336+
val html = formatted.toHtml().toString()
339337

340-
html.toString().split("color:#00ff00").size - 1 shouldBe 12
341-
html.toString().split("font-style:italic").size - 1 shouldBe 6
338+
html.split("color:#00ff00").size - 1 shouldBe 12
339+
html.split("font-style:italic").size - 1 shouldBe 6
342340
}
343341
}

0 commit comments

Comments
 (0)