Skip to content

Commit

Permalink
chore: handle comment
Browse files Browse the repository at this point in the history
  • Loading branch information
khanti42 committed Dec 16, 2024
1 parent a94bb1d commit 6eb08bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/starknet-snap/src/utils/rpc-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import { Config } from '../config';
import { getRPCUrl } from './rpc-provider';

describe('getRPCUrl', () => {
Config.rpcApiKey = 'test';
beforeEach(function () {
Config.rpcApiKey = 'API_KEY';
});
afterEach(function () {
Config.rpcApiKey = '';
});
it('returns Mainnet RPC URL if chain id is Mainnet', () => {
expect(getRPCUrl(constants.StarknetChainId.SN_MAIN)).toBe(
`https://starknet-mainnet.infura.io/v3/${Config.rpcApiKey}`,
Expand Down

0 comments on commit 6eb08bc

Please sign in to comment.