diff --git a/tests/testthat/_snaps/get_map_data.md b/tests/testthat/_snaps/get_map_data.md new file mode 100644 index 0000000..6237506 --- /dev/null +++ b/tests/testthat/_snaps/get_map_data.md @@ -0,0 +1,4 @@ +# Get map data errs correctly + + You have provided type `fisk` which is not compatible with this function. + diff --git a/tests/testthat/test-get_map_data.R b/tests/testthat/test-get_map_data.R new file mode 100644 index 0000000..b73bb24 --- /dev/null +++ b/tests/testthat/test-get_map_data.R @@ -0,0 +1,4 @@ +test_that("Get map data errs correctly", { + expect_snapshot_error(get_map_data("fisk")) + expect_error(get_map_data("fisk")) +})