Pārlūkot izejas kodu

Add test for print.google_font

tags/v0.3.0
Garrick Aden-Buie pirms 6 gadiem
vecāks
revīzija
315fe17983
2 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  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 Parādīt failu

@@ -0,0 +1,3 @@
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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt