import { describe, it, expect } from "vitest";
import { mount } from "@vue/test-utils";
import AppLoadingState from "../AppLoadingState.vue";

describe("AppLoadingState", () => {
  it("renders default label", () => {
    const wrapper = mount(AppLoadingState);

    expect(wrapper.text()).toContain("Loading");
  });

  it("renders custom label from prop", () => {
    const wrapper = mount(AppLoadingState, {
      props: { text: "Fetching data" },
    });

    expect(wrapper.text()).toContain("Fetching data");
  });
});
