Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/maps/maps/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

import { StreetViewPanorama } from "../../street-view/rendering/panorama";
import { LatLng, LatLngBounds } from "../coordinates/latlng";
import { MVCObject } from "../event/mvcobject";

Expand Down Expand Up @@ -79,10 +80,7 @@ export class Map_ extends MVCObject implements google.maps.Map {
);
public getStreetView = jest
.fn()
.mockImplementation(
(): google.maps.StreetViewPanorama =>
jest.fn() as unknown as google.maps.StreetViewPanorama
);
.mockImplementation(() => new StreetViewPanorama());
public getTilt = jest.fn().mockImplementation((): number => 0);
public getZoom = jest.fn().mockImplementation((): number => 0);
public moveCamera = jest
Expand Down