Nothing
with_mock_api({
test_that("We can get the directory", {
local_config()
# Get employee directory
directory <- get_employee()
# Check a tibble is returned
expect_s3_class(directory, "tbl_df")
expect_named(directory,
c("id", "displayName", "firstName", "lastName", "preferredName",
"jobTitle", "workEmail", "department", "location", "division",
"pronouns", "photoUploaded", "photoUrl", "canUploadPhoto"))
expect_equal(nrow(directory), 1)
expect_equal(directory$firstName, "John")
expect_equal(directory$lastName, "Smith")
})
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.