import { fund, getCurrentPointerPool } from "../../../src/fund/mod";
import { forceFundmeOnBrowser } from "../../../src/fund/fund-browser";
import { toBeInTheDocument, toHaveAttribute } from "@testing-library/jest-dom/matchers";
expect.extend({ toBeInTheDocument, toHaveAttribute });
describe('get weight from ', () => {
test("fund() will scrape from template", () => {
forceFundmeOnBrowser();
const pointerAddress = "$coil.com/pointer-address1";
document.body.innerHTML = `
`;
fund();
const pool = getCurrentPointerPool();
// @ts-ignore
expect(pool[0].weight).toBe(52);
document.body.innerHTML = "";
});
});