Skip to content

Commit

Permalink
set timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Oct 5, 2023
1 parent 92a1d7f commit a273399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test-summarize.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ test_that("sum_activity errors", {
test_that("sum_activity testdt_specific", {
data("testdt_tracking")
wt <- as.wt_dt(testdt_tracking)
attr(wt$timestamp, "tzone") <- "UTC"
wt_sum <- sum_activity(wt, timeframe = "week")
# test correct number of active weeks
expect_equal(sum(wt_sum$active_weeks, na.rm = TRUE), 46)
expect_equal(sum(wt_sum$active_weeks, na.rm = TRUE), 47)
})

0 comments on commit a273399

Please sign in to comment.