diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-04 18:31:10 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-05 10:46:48 +0000 |
commit | 1ba5f1cb9d7951224bc1320e772b1c43aeeb9fda (patch) | |
tree | 6bfa42165748a4a33f43bbd1035e689ee491461d | |
parent | 457ce2af2b2e3d1e30ab440011b0c3de112b834b (diff) |
Smoke test of FixMyStreet::Map::Google.
-rw-r--r-- | t/map/google.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/t/map/google.t b/t/map/google.t new file mode 100644 index 000000000..e2877f53c --- /dev/null +++ b/t/map/google.t @@ -0,0 +1,21 @@ +use FixMyStreet::Map::Google; +use FixMyStreet::Test; + +use Catalyst::Test 'FixMyStreet::App'; + +my $c = ctx_request('/'); + +FixMyStreet::Map::Google->display_map($c, any_zoom => 1); + +is_deeply $c->stash->{map}, { + any_zoom => 1, + zoomToBounds => 1, + type => 'google', + zoom => 15, + zoomOffset => 0, + numZoomLevels => 19, + zoom_act => 15, +}; + +done_testing(); + |