Skip to content

Commit 5fb59f4

Browse files
coderabbitai[bot]CodeRabbit
andauthored
fix: apply CodeRabbit auto-fixes
Fixed 1 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
1 parent 1730e40 commit 5fb59f4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎sdks/urbackend-sdk/tests/auth.test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { expect, test, vi, beforeEach } from 'vitest';
22
import urBackend from '../src/index';
33

44
const mockApiKey = 'pk_live_test';
5-
const client = urBackend({ apiKey: mockApiKey });
5+
let client: ReturnType<typeof urBackend>;
66

7-
beforeEach(async () => {
7+
beforeEach(() => {
88
vi.resetAllMocks();
9-
await client.auth.logout();
9+
client = urBackend({ apiKey: mockApiKey });
1010
});
1111

1212
test('signUp returns user object on success', async () => {
@@ -166,4 +166,4 @@ test('publicProfile calls correct endpoint', async () => {
166166
expect.stringContaining('/api/userAuth/public/yash'),
167167
expect.any(Object),
168168
);
169-
});
169+
});

0 commit comments

Comments
 (0)