Skip to content

Commit fbf82f6

Browse files
committed
use internal data.frame
1 parent c65101f commit fbf82f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-scale_date.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ test_that("date(time) scales coerce data types", {
55
datetime <- as.POSIXct(date)
66

77
sc <- scale_x_datetime()
8-
df <- sc$transform_df(data.frame(x = date))
8+
df <- sc$transform_df(data_frame0(x = date))
99
expect_equal(df$x, as.numeric(datetime))
1010

1111
sc <- scale_x_date()
12-
df <- sc$transform_df(data.frame(x = datetime))
12+
df <- sc$transform_df(data_frame0(x = datetime))
1313
expect_equal(df$x, as.numeric(date))
1414

1515
})

0 commit comments

Comments
 (0)