Skip to content

Commit 723410f

Browse files
committed
feat(google-maps): Add map-info-window component
Fix type error with getPosition test.
1 parent d9ec9bd commit 723410f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/google-maps/map-info-window/map-info-window.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ describe('MapInfoWindow', () => {
151151
infoWindowSpy.getContent.and.returnValue('test content');
152152
expect(infoWindowComponent.getContent()).toBe('test content');
153153

154-
infoWindowSpy.getPosition.and.returnValue(null);
155-
expect(infoWindowComponent.getPosition()).toBe(null);
154+
infoWindowComponent.getPosition();
155+
expect(infoWindowSpy.getPosition).toHaveBeenCalled();
156156

157157
infoWindowSpy.getZIndex.and.returnValue(5);
158158
expect(infoWindowComponent.getZIndex()).toBe(5);

0 commit comments

Comments
 (0)