ソースを参照

Add test for print.google_font

tags/v0.3.0
親
コミット
315fe17983
2個のファイルの変更、9行の追加、0行の削除
  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 ファイルの表示

@@ -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 ファイルの表示

@@ -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"
)
})

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