import { fund, getCurrentPointerPool } from "../../../src/fund/mod"; import { forceFundmeOnBrowser } from "../../../src/fund/fund-browser"; //@ts-ignore import { toBeInTheDocument, toHaveAttribute } from "@testing-library/jest-dom/matchers"; expect.extend({ toBeInTheDocument, toHaveAttribute }); describe("get monetization pointer address from ", () => { test("fund() will scrape from template", () => { const pointerAddress = "$money.com/pointer-address2"; document.body.innerHTML = ` `; forceFundmeOnBrowser(); fund(); // @ts-ignore expect(getCurrentPointerPool()[0].weight).not.toBe(NaN); // const metaTag = document.querySelector('meta[name="monetization"]') // expect(metaTag).toBeInTheDocument() // expect(metaTag).toHaveAttribute('content', pointerAddress) document.body.innerHTML = ""; }); test("two