Skip to content

Commit

Permalink
Update tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenMMortimer committed Dec 17, 2018
1 parent 104080a commit 3a87f4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-bulk.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ test_that("testing Bulk 2.0 Functionality", {
"My_External_Id__c", "test_number__c", "sf__Error"))
expect_equal(nrow(updated_records), nrow(queried_records))
expect_true(all(is.na(updated_records$sf__Error)))
expect_true(all(updated_records$sf__Created))
expect_true(all(!updated_records$sf__Created))

new_record <- tibble(FirstName = "Test",
LastName = paste0("Contact-Upsert-", n+1),
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-metadata.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ test_that("sf_create_metadata", {
expect_is(custom_object_result, "tbl_df")
expect_named(custom_object_result, c('fullName', 'success'))
expect_equal(nrow(custom_object_result), 1)
expect_equal(all(custom_object_result$success))
expect_true(all(custom_object_result$success))

expect_is(create_fields_result1, "tbl_df")
expect_named(create_fields_result1, c('fullName', 'success'))
Expand All @@ -99,7 +99,7 @@ test_that("sf_update_metadata", {
expect_is(updated_custom_object_result, "tbl_df")
expect_named(updated_custom_object_result, c('fullName', 'success'))
expect_equal(nrow(updated_custom_object_result), 1)
expect_equal(all(updated_custom_object_result$success))
expect_true(all(updated_custom_object_result$success))
})

test_that("sf_rename_metadata", {
Expand Down

0 comments on commit 3a87f4e

Please sign in to comment.