浏览代码

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

正在加载...
取消
保存