We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91562e6 commit cdc5b25Copy full SHA for cdc5b25
1 file changed
src/common/utils.test.ts
@@ -1,3 +1,4 @@
1
+import { INFURA_API_KEY } from "../config";
2
import { AllVerificationFragment } from "..";
3
import { InvalidVerificationFragment, ProviderDetails } from "../types/core";
4
import {
@@ -281,12 +282,12 @@ describe("generateProvider", () => {
281
282
const options = {
283
network: "sepolia",
284
providerType: "infura",
- apiKey: "bb46da3f80e040e8ab73c0a9ff365d18",
285
+ apiKey: INFURA_API_KEY,
286
} as ProviderDetails;
287
const provider = generateProvider(options) as any;
288
289
expect(provider?._network?.name).toEqual("sepolia");
- expect(provider?.apiKey).toEqual("bb46da3f80e040e8ab73c0a9ff365d18");
290
+ expect(provider?.apiKey).toEqual(INFURA_API_KEY);
291
expect(provider?.connection?.url).toMatch(/(infura)/i);
292
});
293
0 commit comments