import { fund, getCurrentPointerAddress } from "../../../src/fund/mod"; import { forceFundmeOnBrowser } from "../../../src/fund/fund-browser"; import { invalidAddress } from "../../../src/fund/errors"; describe("correctly fund() argument", () => { test("get single pointer if parameter is a string", () => { forceFundmeOnBrowser(); const myFundingType = fund("test"); expect(myFundingType).toBe("single"); }); test("get multiple pointer if parameter is an array", () => { const myFundingType = fund( [ "test", "address2", { address: "Wooooww", weight: 4, }, ], { force: "client" }, ); expect(myFundingType).toBe("multiple"); }); test("get from templates if parameter is empty", () => { document.body.innerHTML = '