Skip to content

Commit

Permalink
Merge pull request #108 from jamiewhths/fix-ai-3786
Browse files Browse the repository at this point in the history
Revert test fixes for AI-3786
  • Loading branch information
akbertram authored Nov 9, 2023
2 parents 47a61b7 + c3d02c7 commit a7b45ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,8 @@ canonicalizeActivityInfoObject <- function(tree, replaceId = TRUE, replaceDate =
list("Empty resources until we can ensure a sort order in the API.")
}
})
} else if (is.vector(x) && is.character(x)) {
# reorder character vectors (which are not lists) as sort order is not guaranteed by API
x <- x[order(x)]
}


x <- lapply(x, function(y) {
recursiveCanonicalize(y, path = paste(c(path, path), collapse = "."))
})
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-formField.r
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ test_that("Test deleteFormField()", {
identicalForm(fmSchm %>% deleteFormField(label = c("Text field 1", "Text field 5")), fmSchm2)
})

test_that("Test roundtrip of attachmentFieldSchema()", {
testField(attachmentFieldSchema(label = "A attachment FieldSchema field"))
})
# test_that("Test roundtrip of attachmentFieldSchema()", {
# testField(attachmentFieldSchema(label = "A attachment FieldSchema field"))
# })

test_that("Barcode fields can be created and uploaded and downloaded and are identical", {
testField(barcodeFieldSchema(label = "A barcode field"))
Expand Down

0 comments on commit a7b45ae

Please sign in to comment.