aboutsummaryrefslogtreecommitdiffstats
path: root/t/map/google.t
blob: e2877f53ce1e55d619daca456365848677bcdcd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();