test_that("aurora_component emits an element wired to the endpoint", { html <- as.character(aurora_component("api/sales/data", id = "vendas")) expect_match(html, "data-endpoint=\"api/sales/data\"", fixed = TRUE) expect_match(html, "id=\"vendas\"", fixed = TRUE) expect_match(html, "^