Skip to content

Commit dbff65f

Browse files
committed
✨ feat: 테스트 코드 변경
1 parent 0b0e440 commit dbff65f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hooks/useGeolocation.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ describe('useGeolocation hook', () => {
5252
waitFor(() => {
5353
expect(result.current.loading).toBe(false);
5454
expect(result.current.error).toBe(null);
55-
expect(result.current.coords.latitude).toBe(35);
56-
expect(result.current.coords.longitude).toBe(139);
55+
expect(result.current.latitude).toBe(35);
56+
expect(result.current.longitude).toBe(139);
5757
});
5858
});
5959

@@ -76,8 +76,8 @@ describe('useGeolocation hook', () => {
7676
await waitFor(() => {
7777
expect(result.current.loading).toBe(false);
7878
expect(result.current.error).not.toBe(null);
79-
expect(result.current.coords.latitude).toBeUndefined();
80-
expect(result.current.coords.longitude).toBeUndefined();
79+
expect(result.current.latitude).toBeUndefined();
80+
expect(result.current.longitude).toBeUndefined();
8181
});
8282
});
8383
});

0 commit comments

Comments
 (0)