googlemaps / googlemaps/js-jest-mocks
Implement mocks for google.maps.geometry
Open
priority: p2
type: feature request
- Dominant language
- TypeScript
- Stars
- 42
- Forks
- 33
- Avg merge
- 1m
- Merged PRs (30d)
- 3
Description
```
describe('given xxx.service.tsx', () => {
beforeEach(() => {
initialize();
});
describe('when I xxx', () => {
it('should yyy', () => {
const xxxspy = jest.spyOn(google.maps.geometry.spherical, 'computeLength').mockReturnValue(1);
const distance = xxx.getDistance(params)
expect(distance).toEqual(yyy)
xxxspy.mockRestore();
});
});
});
```

Contributor guide
Assessment
This issue has not been assessed yet.