Skip to content

Commit

Permalink
fix: avoid typescript equals import
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulthink committed Apr 18, 2024
1 parent 02a9cdc commit 000afc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/__tests__/map.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import '@testing-library/jest-dom';
import {Map as GoogleMap, MapProps} from '../map';
import {APIProviderContext, APIProviderContextValue} from '../api-provider';
import {APILoadingStatus} from '../../libraries/api-loading-status';
import mocked = jest.mocked;

jest.mock('../../libraries/google-maps-api-loader');

Expand Down Expand Up @@ -195,7 +194,7 @@ describe('camera configuration', () => {

expect(createMapSpy).toHaveBeenCalled();

const mapInstance = mocked(mockInstances.get(google.maps.Map).at(0)!);
const mapInstance = jest.mocked(mockInstances.get(google.maps.Map).at(0)!);
expect(mapInstance.fitBounds).toHaveBeenCalledWith({
east: 180,
north: 90,
Expand Down

0 comments on commit 000afc9

Please sign in to comment.