Просмотр исходного кода

Fix tests for {testthat} 3.1.0

tags/v0.4.1
Garrick Aden-Buie 4 лет назад
Родитель
Сommit
046187ae84
Не найден GPG ключ соответствующий данной подписи
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")

Загрузка…
Отмена
Сохранить