Skip to content

Commit 4f8d9f1

Browse files
committed
Fix new tests (typo)
1 parent b897668 commit 4f8d9f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testthat/test-ggplot-histogram.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ test_that("datetime binning for class POSIXt works in histograms", {
160160
expect_identical(L$kwargs$layout$xaxis$type, "date")
161161
expect_equal(L[[1]]$xbins$size, 2592000000) # Bin size in ms
162162

163-
save_outputs(hist, "histogram-POSIXt-bins")
163+
save_outputs(histP, "histogram-POSIXt-bins")
164164
})
165165

166166
test_that("datetime binning for class Date works in histograms", {
@@ -174,5 +174,5 @@ test_that("datetime binning for class Date works in histograms", {
174174
expect_identical(L$kwargs$layout$xaxis$type, "date")
175175
expect_equal(L[[1]]$xbins$size, 2.592e+09) # Number of ms in 30 days
176176

177-
save_outputs(hist, "histogram-Date-bins")
178-
})
177+
save_outputs(histD, "histogram-Date-bins")
178+
})

0 commit comments

Comments
 (0)