Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
JaseZiv committed Jan 14, 2024
1 parent 9ce3857 commit c74047e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/testthat/test-transfermarkt.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,17 @@ test_that("tm_player_injury_history() works", {
expect_false(nrow(hazard_injuries) == 0)

})


test_that("tm_get_player_absence() works", {
testthat::skip_on_cran()

player_absence <- tm_get_player_absence(player_urls = c("https://www.transfermarkt.com/cristian-romero/profil/spieler/355915",
"https://www.transfermarkt.com/micky-van-de-ven/profil/spieler/557459"))
expect_type(player_absence, "list")
expect_equal(ncol(player_absence), 10)
expect_false(nrow(player_absence) == 0)

})


0 comments on commit c74047e

Please sign in to comment.