text: import { expect, fixture } from "@open-wc/testing";
  import { BaseDateTimeListBox } from "../index";
  describe("BaseDateTimeListBox", () => {
      describe("kuc:listbox-click event", () => {
          it("should be triggered kuc:listbox-click event", async () => {
              let triggeredEvent = null;
              const initItems = [
                  { value: "0", label: "JANUARY" },
                  { value: "1", label: "FEBRUARY" },
                  { value: "2", label: "MARCH" }
              ];
              const container = new BaseDateTimeListBox();
              container.items = initItems;
              container.addEventListener("kuc:listbox-click", event => {
                  triggeredEvent = event;
              });
              const el = await fixture(container);
              const itemsEl = el.querySelectorAll(".kuc-base-datetime-listbox__listbox__item");
              itemsEl[2].dispatchEvent(new CustomEvent("mousedown", { bubbles: true }));
              expect(triggeredEvent.type).to.equal("kuc:listbox-click");
              expect(triggeredEvent.detail.value).to.equal(initItems[2].value);
          });
          it("should be triggered when press Tab key", async () => {
              let triggeredEvent = null;
              const initItems = [
                  { value: "0", label: "JANUARY" },
                  { value: "1", label: "FEBRUARY" },
                  { value: "2", label: "MARCH" }
              ];
              const container = new BaseDateTimeListBox();
              container.items = initItems;
              container.addEventListener("kuc:listbox-click", event => {
                  triggeredEvent = event;
              });
              const el = await fixture(container);
              const itemsEl = el.querySelectorAll(".kuc-base-datetime-listbox__listbox__item");
              itemsEl[2].dispatchEvent(new KeyboardEvent("keydown", { key: "Tab", bubbles: true }));
              expect(triggeredEvent.type).to.equal("kuc:listbox-click");
              expect(triggeredEvent.detail.value).to.equal(undefined);
          });
      });
  });
  