Skip to content

Commit 14f3141

Browse files
committed
Fix react native tests
1 parent 48c6e39 commit 14f3141

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/react-native/tests/sync/ReactNativeRemote.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { describe, expect, it, Mock, vi } from 'vitest';
22

3-
import { PowerSyncFetchImplementation, ReactNativeRemote } from '../../src/sync/stream/ReactNativeRemote';
3+
import { ReactNativeRemote } from '../../src/sync/stream/ReactNativeRemote';
44
import { createConsoleLogger } from '@powersync/common';
55
import { FetchOptions } from '@powersync/shared-internals';
6+
import type { PowerSyncFetchImplementation } from '../../src/sync/stream/fetch';
67

78
const connector = {
89
fetchCredentials: async () => ({
@@ -41,7 +42,7 @@ describe('ReactNativeRemote', () => {
4142
const [fetchImplementation, mock] = mockFetchImplementation();
4243
const remote = new ReactNativeRemote(connector, logger, { fetchImplementation });
4344

44-
await remote.get('/write-checkpoint2.json');
45+
await remote.fetchAndDecodeJson({ path: '/write-checkpoint2.json' });
4546

4647
expect(mock).toHaveBeenCalledWith({
4748
resource: 'https://example.com/write-checkpoint2.json',

0 commit comments

Comments
 (0)