File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ describe('useGeolocation hook', () => {
52
52
waitFor ( ( ) => {
53
53
expect ( result . current . loading ) . toBe ( false ) ;
54
54
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 ) ;
57
57
} ) ;
58
58
} ) ;
59
59
@@ -76,8 +76,8 @@ describe('useGeolocation hook', () => {
76
76
await waitFor ( ( ) => {
77
77
expect ( result . current . loading ) . toBe ( false ) ;
78
78
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 ( ) ;
81
81
} ) ;
82
82
} ) ;
83
83
} ) ;
You can’t perform that action at this time.
0 commit comments