We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78338b8 commit 7f1083cCopy full SHA for 7f1083c
packages/faucet-client/src/faucetclient.spec.ts
@@ -21,6 +21,12 @@ describe("FaucetClient", () => {
21
expect(new FaucetClient("https://localhost/")).toBeTruthy();
22
});
23
24
+ (enabled ? it : xit)("should throw error if the base URL does not start with http:// or https://", () => {
25
+ expect(() => new FaucetClient("ftp://example.com")).toThrowError(
26
+ "Expected base url to start with http:// or https://",
27
+ );
28
+ });
29
+
30
(enabled ? it : xit)("can be used to credit a wallet", async () => {
31
const faucet = new FaucetClient(faucetUrl);
32
await faucet.credit(defaultAddress, primaryToken);
0 commit comments