From 23a4b20f10f400c70d7e301097c6b56b9698c687 Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Thu, 9 Sep 2021 08:59:20 -0600 Subject: [PATCH] style: fix formatting (#274) --- src/label.test.ts | 4 ++-- src/marker.test.ts | 6 +++--- tsconfig.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/label.test.ts b/src/label.test.ts index f9cfde1..7af42f3 100644 --- a/src/label.test.ts +++ b/src/label.test.ts @@ -23,13 +23,13 @@ beforeAll(() => { initialize(); google.maps.OverlayView = OverlayView as any; Label.prototype.getProjection = (): google.maps.MapCanvasProjection => { - return ({ + return { fromPointToLatLng: () => {}, fromLatLngToPoint: () => {}, fromLatLngToDivPixel: (position: google.maps.LatLng) => { return { x: 1, y: 3 }; }, - } as unknown) as google.maps.MapCanvasProjection; + } as unknown as google.maps.MapCanvasProjection; }; }); diff --git a/src/marker.test.ts b/src/marker.test.ts index a0d3cb0..fe0c5ad 100644 --- a/src/marker.test.ts +++ b/src/marker.test.ts @@ -24,13 +24,13 @@ beforeAll(() => { initialize(); google.maps.OverlayView = OverlayView as any; Label.prototype.getProjection = (): google.maps.MapCanvasProjection => { - return ({ + return { fromPointToLatLng: () => {}, fromLatLngToPoint: () => {}, fromLatLngToDivPixel: (position: google.maps.LatLng) => { return { x: 1, y: 3 }; }, - } as unknown) as google.maps.MapCanvasProjection; + } as unknown as google.maps.MapCanvasProjection; }; }); @@ -55,7 +55,7 @@ test("init should not pass extended options", () => { }); test("should have listeners after multiple calls to setMap", () => { - const map = (jest.fn() as any) as google.maps.Map; + const map = jest.fn() as any as google.maps.Map; (google.maps.Marker.prototype.getMap as jest.Mock).mockImplementation(() => { return map; }); diff --git a/tsconfig.json b/tsconfig.json index ce57d86..2f0ac77 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "lib": ["DOM", "ESNext"], "target": "ES6", "moduleResolution": "node", - "skipLibCheck": true, + "skipLibCheck": true }, "include": ["src/**/*"] }