diff options
Diffstat (limited to 't')
-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(); + |