/** @vitest-environment jsdom */
import { renderHook } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import { AssistenteProvider, useAssistente } from './AssistenteContext';
import React from 'react';

describe('AssistenteContext', () => {
  it('provides assistente state', () => {
    const wrapper = ({ children }: { children: React.ReactNode }) => (
      <AssistenteProvider>{children}</AssistenteProvider>
    );

    const { result } = renderHook(() => useAssistente(), { wrapper });
    expect(result.current).toBeDefined();
    expect(result.current.historico).toBeInstanceOf(Array);
  });
});
