Skip to content

Commit 99779e0

Browse files
committed
fix read_importsealevels test
1 parent 629b564 commit 99779e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/testthat/test-read_importsealevels.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mock_req_perform <- function(...) {
1919

2020
# Mock read.csv to return a predefined dataframe
2121
mock_read_csv <- function(file, ...) {
22-
data.frame(year = c(2023, 2023), month = c(1, 2), msl = c(1.5, 1.6))
22+
data.frame(date = c('2023-01-01', '2023-02-01'), year = c(2023, 2023), month = c(1, 2), msl = c(1.5, 1.6))
2323
}
2424

2525
test_that("read_importsealevels writes and reads CSV correctly", {

0 commit comments

Comments
 (0)