/*
 * File: profileAPI.test.ts
 * Description: Test for profileAPI service
 * Design & Developed by Tech4Biz Solutions
 * Copyright (c) Spurrin Innovations. All rights reserved.
 */

import { profileAPI } from '../services/profileAPI';

jest.mock('apisauce', () => ({
  create: () => ({ get: jest.fn(() => Promise.resolve({ ok: true, data: { id: '1', name: 'Dr. Smith', email: 'dr@hospital.com' } })) })
}));

describe('profileAPI', () => {
  it('calls getProfile and returns data', async () => {
    const response = await profileAPI.getProfile('1');
    expect(response.ok).toBe(true);
    expect(response.data).toHaveProperty('email', 'dr@hospital.com');
  });
});

/*
 * End of File: profileAPI.test.ts
 * Design & Developed by Tech4Biz Solutions
 * Copyright (c) Spurrin Innovations. All rights reserved.
 */ 