tests/testthat/test-getDataForSingleApp.R

context("getDataForSingleApp")

test_that("app_url is a character", {
  expect_error(getDataForSingleApp(50))
})

test_that("app_url starts with the string https://play.google.com/store/apps/details?id=", {
  expect_error(getDataForSingleApp("www.google.com"))
})
stephaniereinders/rscrapps documentation built on March 18, 2022, 1:02 a.m.