Skip to content

Commit

Permalink
Adjust test.
Browse files Browse the repository at this point in the history
  • Loading branch information
munterfi committed Nov 19, 2021
1 parent 25902ee commit bd85bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-route.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test_that("route works", {

# Avoid area and features
expect_true(all(grepl("&avoid[areas]=bbox:", route(origin = poi, destination = poi, avoid_area = aoi, url_only = TRUE), fixed = TRUE)))
expect_true(all(grepl("&avoid[features]=Luzern", route(origin = poi, destination = poi, avoid_feature = "Luzern", url_only = TRUE), fixed = TRUE)))
expect_true(all(grepl("&avoid[features]=tollRoad,ferry", route(origin = poi, destination = poi, avoid_feature = c("tollRoad", "ferry"), url_only = TRUE), fixed = TRUE)))

# Test with API response mock
with_mock(
Expand Down

0 comments on commit bd85bd6

Please sign in to comment.