Skip to content

Commit

Permalink
Remove unnecessary svg() calls in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed Feb 7, 2024
1 parent f44cd15 commit dbb3c03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions tests/testthat/test-independent-testing-as_rtf_pageby.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
library(dplyr)
svg(tempfile("tmp.svg"))

test_that("Test for case when output has title, footnote and source", {
x <- iris[1:2, ] |>
rtf_title("Title") |>
Expand Down Expand Up @@ -136,5 +136,3 @@ test_that("Test when using subline_by and page_by with pageby_row = 'first_row'

expect_snapshot_output(tbl2$body)
})

dev.off()
3 changes: 0 additions & 3 deletions tests/testthat/test-independent-testing-rtf_nrow.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# create testing example
svg(tempfile("tmp.svg"))

font <- 2:3
format <- matrix(c("", "i", "b", "ib"), nrow = 4, ncol = 2, byrow = FALSE)
Expand Down Expand Up @@ -174,5 +173,3 @@ test_that("test for rtf-nrow() if 'rtf-nrow' attributes are added correctly for
test_that("test for rtf-nrow() if 'rtf-nrow' attributes are added correctly for pageby_row table", {
expect_equal(irspagebyrows[1], 1)
})

dev.off()

0 comments on commit dbb3c03

Please sign in to comment.