Skip to content

Commit cafde1a

Browse files
Test fixes 2
1 parent 44a81c5 commit cafde1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tmcrstudioaddin/tests/testthat/testSubmissions.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ mockProcessingSubmitJson <- function() {
2727
}
2828

2929
test_that("If no metadata file, does not submit", {
30-
submitJson <- submitCurrent(noMetadata)
31-
expect_equal(submitJson$error, "Could not read json")
30+
credentials <- list()
31+
submitJson <- submit_current(path = noMetadata, credentials = credentials)
32+
expect_equal(submitJson$error[[1]], "Could not read json")
3233
})
3334

3435
test_that("SubmitCurrent works when no errors", {

0 commit comments

Comments
 (0)