<commit_before>import { shallow } from "enzyme";
import React from "react";
import Panel from "../../app/components/Panel";

function setup() {
  const props = {
    pedidos: [{
      id: 1,
      nombre: "Pedido 1"
    }, {
      id: 2,
      nombre: "Pedido 2"
    }]
  };

  const panelEnzyme = shallow(<Panel pedidos={props.pedidos} />);

  return {
    panelEnzyme
  };
}

describe("Componenete Panel", () => {
  it("Debe renderizar componente", () => {
    const { panelEnzyme } = setup();
    expect(panelEnzyme.find("h1").text())
      .toBe("Panel pedidos");
    expect(panelEnzyme.find("li").length)
      .toBe(2);<commit_msg>Se agrega parametro al construir panel en test<commit_after>import { shallow } from "enzyme";
import React from "react";
import Panel from "../../app/components/Panel";

function setup() {
  const props = {
    pedidos: [{
      id: 1,
      nombre: "Pedido 1"
    }, {
      id: 2,
      nombre: "Pedido 2"
    }],
    subscribirCambiosPanel: () => { }
  };

  const panelEnzyme = shallow(<Panel {...props} />);

  return {
    panelEnzyme
  };
}

describe("Componenete Panel", () => {
  it("Debe renderizar componente", () => {
    const { panelEnzyme } = setup();
    expect(panelEnzyme.find("h1").text())
      .toBe("Panel pedidos");
    expect(panelEnzyme.find("li").length)
      .toBe(2);
{'fraction_non_alphanumeric': 0.17779444861215304, 'fraction_numerical': 0.00900225056264066, 'mean_word_length': 2.822349570200573, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1052398', 'n_tokens_mistral': 475, 'n_tokens_neox': 444, 'n_words': 99}