Skip to content

Commit f019df1

Browse files
committed
test(clerk-js): Remove test for no existing sign up
1 parent 7d82778 commit f019df1

1 file changed

Lines changed: 0 additions & 41 deletions

File tree

packages/clerk-js/src/core/resources/__tests__/SignUp.test.ts

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -160,47 +160,6 @@ describe('SignUp', () => {
160160
vi.unstubAllGlobals();
161161
});
162162

163-
it('creates signup with phoneNumber when no existing signup', async () => {
164-
const mockFetch = vi
165-
.fn()
166-
.mockResolvedValueOnce({
167-
client: null,
168-
response: { id: 'signup_123', status: 'missing_requirements' },
169-
})
170-
.mockResolvedValueOnce({
171-
client: null,
172-
response: { id: 'signup_123' },
173-
});
174-
BaseResource._fetch = mockFetch;
175-
176-
const signUp = new SignUp();
177-
await signUp.__internal_future.verifications.sendPhoneCode({ phoneNumber: '+15551234567' });
178-
179-
// First call should create signup with phoneNumber
180-
expect(mockFetch).toHaveBeenNthCalledWith(
181-
1,
182-
expect.objectContaining({
183-
method: 'POST',
184-
path: '/client/sign_ups',
185-
body: expect.objectContaining({
186-
phoneNumber: '+15551234567',
187-
}),
188-
}),
189-
);
190-
191-
// Second call should prepare verification
192-
expect(mockFetch).toHaveBeenNthCalledWith(
193-
2,
194-
expect.objectContaining({
195-
method: 'POST',
196-
path: '/client/sign_ups/signup_123/prepare_verification',
197-
body: expect.objectContaining({
198-
strategy: 'phone_code',
199-
}),
200-
}),
201-
);
202-
});
203-
204163
it('uses existing signup when already created', async () => {
205164
const mockFetch = vi.fn().mockResolvedValue({
206165
client: null,

0 commit comments

Comments
 (0)