Skip to content

Commit 4867280

Browse files
committed
added note explaining test setup
1 parent 7660589 commit 4867280

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/testthat/test-smk-utils.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#
1313
# Set up
1414
#
15+
16+
## When .loadServersideObject is called, the actual data exists two levels below the function,
17+
## i.e. data in global env --> ds function --> .loadServersideObject. We recreate this in
18+
## the test environment with a wrapper function.
1519
.dsFunctionWrapper <- function(x) {
1620
.loadServersideObject(x)
1721
}

0 commit comments

Comments
 (0)