Skip to content

Commit

Permalink
test: fix the R test for the extras argument
Browse files Browse the repository at this point in the history
  • Loading branch information
kalekundert committed Apr 11, 2021
1 parent 6e06004 commit bffc9ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wellmapr/tests/testthat/test_load.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test_that("`data_loader()` gets the `extras` argument", {
'toml/one_well_xy_extras.toml',
data_loader=data_loader,
merge_cols=TRUE,
extras="extras",
extras=TRUE,
path_guess="{0.stem}.csv")
layout[[1]]$path <- NULL

Expand All @@ -66,7 +66,7 @@ test_that("`data_loader()` gets the `extras` argument", {
Data="xy")

expect_equivalent(!!layout[[1]], !!expected)
expect_equivalent(layout[[2]], list(a=1, b=1))
expect_equivalent(layout[[2]], list(extras=list(a=1, b=1)))
})

test_that("`on_alert()` path converted into string", {
Expand Down

0 comments on commit bffc9ba

Please sign in to comment.