Skip to content

help([google-maps]): [Working example of testing a component which uses a google map] #18926

@vbourdeix

Description

@vbourdeix

Is there an example project somewhere showing how to test a component using a google-map component ? I've tried a lot of things, but I had to give up.

For example I tried using the following code in my beforeEach :

    mapSpy = createMapSpy(DEFAULT_OPTIONS);
    mapConstructorSpy = createMapConstructorSpy(mapSpy);

But I still get an error such as "Uncaught TypeError: googleMap.setOptions is not a function "

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: google-mapsneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bugtroubleshootingThis issue is not reporting an issue, but just asking for help

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions