aboutsummaryrefslogtreecommitdiffstats
path: root/t/map/google.t
blob: e972790727e32c1d4aef6880f9306a87bdb8cf14 (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 => 20,
    zoom_act => 15,
};

done_testing();