import { dS as t, J as o, dV as i, j as d } from "./603b75d9.js";
import { ButtonComp as n } from "./7699935c.js";
import "react";
import "react-dom";
import "./26dac75c.js";
test("test withIsLoading", async () => {
  const s = d(n);
  let e = new s({
    value: {
      text: "{{query1.data}}"
    }
  });
  const a = t("aaa");
  e = o(e, {
    query1: i({ data: a })
  }), expect(e.children.text.getView()).toEqual("aaa"), expect(e.isLoading).toBe(!1), e = o(e, {
    query1: i({
      data: a,
      isFetching: t(!0)
    })
  }), expect(e.isLoading).toBe(!0), e = o(e, {
    query1: i({
      data: a,
      isFetching: t(!1),
      latestEndTime: t((/* @__PURE__ */ new Date()).getTime())
    })
  }), expect(e.isLoading).toBe(!1);
});
