library(httr)
library(Rnotion)
library(jsonlite)
test_that("notion_get_user works", {
expect_error(notion_get_user(query = "Totally Wrong!"))
actual <- notion_get_user()
expect_equal(httr::http_status(actual) ,httr::http_status(200))
expect_true(httr::has_content(actual))
expect_length(httr::content(actual)$results, 2)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.