Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit eef3b5d

Browse files
committed
Formatting
1 parent 9b05e63 commit eef3b5d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

test/index.spec.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export interface Global {
1010
declare const global: Global;
1111

1212
const mockPermissions = {
13-
query: jest.fn().mockImplementationOnce(() => Promise.resolve({ state:'permitted'})),
13+
query: jest
14+
.fn()
15+
.mockImplementationOnce(() => Promise.resolve({ state: 'permitted' })),
1416
};
1517

1618
afterEach(cleanup);
@@ -23,11 +25,15 @@ describe('it', () => {
2325
});
2426

2527
it('correctly returns the permission status', async () => {
26-
act(() => {global.navigator.permissions = mockPermissions})
28+
act(() => {
29+
global.navigator.permissions = mockPermissions;
30+
});
2731

28-
const { result, waitForNextUpdate } = renderHook(() => useNavigatorPermission('geolocation'))
32+
const { result, waitForNextUpdate } = renderHook(() =>
33+
useNavigatorPermission('geolocation')
34+
);
2935

30-
await waitForNextUpdate()
36+
await waitForNextUpdate();
3137

3238
expect(result.current).toStrictEqual({
3339
error: false,

0 commit comments

Comments
 (0)