Skip to content

Commit

Permalink
chore: remove test years
Browse files Browse the repository at this point in the history
Ref: #206
  • Loading branch information
GeraldineGomez committed Oct 24, 2024
1 parent 0f5ff30 commit a713cae
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/testthat/test-years.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ test_that("`year` funciona correctamente", {
})

test_that("`years` funciona correctamente", {
data_years <- import_data_event(
nombre_event = "MORTALIDAD MATERNA",
years = seq(2019, 2020)
)
data_years <- dengue2020
data_limpia <- limpiar_data_sivigila(data_years)
data_agrupada <- agrupar_years(data_event = data_limpia)

Expand All @@ -30,8 +27,6 @@ test_that("`years` funciona correctamente", {
expect_true("ano" %in% names(data_agrupada))
expect_true("casos" %in% names(data_agrupada))

expect_equal(data_agrupada[["casos"]], c(550, 607))

plot <- plot_years(data_agrupada)
expect_s3_class(plot, "ggplot")
})
Expand Down

0 comments on commit a713cae

Please sign in to comment.