---
# System prepended metadata

title: <!DOCTYPE html>

---

// ExtratoParticipanteComponent

it('should set lastSearch on searchParticipante', () => {
  const searchValue = '12345678909';
  spyOn(component.contratoService, 'getParticipantesContrato').and.returnValue(of([{ nome: 'Teste', cpf: searchValue, matricula: '123456' }]));

  component.searchParticipante();

  console.log('Actual Value:', component.lastSearch);
  console.log('Expected Value:', searchValue);

  expect(component.lastSearch).toEqual(searchValue);
});



.
