Kaynağa Gözat

Add test for print.google_font

tags/v0.3.0
Garrick Aden-Buie 6 yıl önce
ebeveyn
işleme
315fe17983
2 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  1. +3
    -0
      tests/testthat/google-font-print.txt
  2. +6
    -0
      tests/testthat/test-utils.R

+ 3
- 0
tests/testthat/google-font-print.txt Dosyayı Görüntüle

Family: Josefin Sans
Weights: 400,400i,600i,700
URL: https://fonts.googleapis.com/css?family=Josefin+Sans:400,400i,600i,700

+ 6
- 0
tests/testthat/test-utils.R Dosyayı Görüntüle

test_that("printing google_font works", {
expect_known_output(
print(google_font("Josefin Sans", "400", "400i", "600i", "700")),
"google-font-print.txt"
)
})

Yükleniyor…
İptal
Kaydet