Skip to content

Commit

Permalink
test(view_spatial)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimfalk committed Mar 6, 2024
1 parent cf57085 commit 9e98c15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/testthat/test-view_spatial.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ test_that("Output class is as expected.", {
webshot::install_phantomjs()
}

filename <- "kostra2010R_49011.png"
filename <- tempfile(fileext = ".png")

m3 <- view_spatial("49011", file = filename)

expect_s3_class(m3, c("leaflet", "htmlwidget"))

expect_true(file.exists(filename))

unlink(filename)
})

0 comments on commit 9e98c15

Please sign in to comment.