ソースを参照

Fix tests for {testthat} 3.1.0

tags/v0.4.1
親
コミット
046187ae84
この署名に対応する既知のキーがデータベースに存在しません
1個のファイルの変更、1行の追加、1行の削除
  1. +1
    -1
      tests/testthat/test-css.R

+ 1
- 1
tests/testthat/test-css.R ファイルの表示

it("chooses the first from the list if ambiguous", { it("chooses the first from the list if ambiguous", {
file.rename("xaringan-themer.css", "xaringan.css") file.rename("xaringan-themer.css", "xaringan.css")
candidates <- find_xaringan_themer_css() candidates <- find_xaringan_themer_css()
picked <- expect_message(choose_xaringan_themer_css(candidates))
expect_message(picked <- choose_xaringan_themer_css(candidates))
expect_equal(candidates, c("./mono_light.css", "./xaringan.css")) expect_equal(candidates, c("./mono_light.css", "./xaringan.css"))
expect_equal(picked, "./mono_light.css") expect_equal(picked, "./mono_light.css")
expect_equal(read_css_vars()$text_color, "#18273F") expect_equal(read_css_vars()$text_color, "#18273F")

読み込み中…
キャンセル
保存