Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidarain1 committed Feb 3, 2025
1 parent 313ed85 commit 256faa6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/checkout/sdk/src/network/network.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe('network functions', () => {
]);
expect(switchNetworkResult.network).toEqual({
name: ChainName.ETHEREUM,
chainId: BigInt(ChainId.ETHEREUM),
chainId: ChainId.ETHEREUM,
isSupported: true,
nativeCurrency: {
name: ChainName.ETHEREUM,
Expand Down Expand Up @@ -377,11 +377,11 @@ describe('network functions', () => {
SANDBOX_CHAIN_ID_NETWORK_MAP.get(testCase.chainId)?.chainName,
);
expect(result.chainId).toBe(
BigInt(parseInt(
parseInt(
SANDBOX_CHAIN_ID_NETWORK_MAP.get(testCase.chainId)?.chainIdHex
?? '',
16,
)),
),
);
expect(result.nativeCurrency).toEqual(
SANDBOX_CHAIN_ID_NETWORK_MAP.get(testCase.chainId)?.nativeCurrency,
Expand Down Expand Up @@ -453,7 +453,7 @@ describe('network functions', () => {
networks: [
{
name: ChainName.SEPOLIA,
chainId: BigInt(ChainId.SEPOLIA),
chainId: ChainId.SEPOLIA,
isSupported: true,
nativeCurrency: {
name: 'Sep Eth',
Expand All @@ -463,7 +463,7 @@ describe('network functions', () => {
},
{
name: ChainName.IMTBL_ZKEVM_TESTNET,
chainId: BigInt(ChainId.IMTBL_ZKEVM_TESTNET),
chainId: ChainId.IMTBL_ZKEVM_TESTNET,
isSupported: true,
nativeCurrency: ZKEVM_NATIVE_SANDBOX_TOKEN,
},
Expand All @@ -480,7 +480,7 @@ describe('network functions', () => {
networks: [
{
name: ChainName.SEPOLIA,
chainId: BigInt(ChainId.SEPOLIA),
chainId: ChainId.SEPOLIA,
isSupported: true,
nativeCurrency: {
name: 'Sep Eth',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('WalletContext', () => {
});
expect(network).toEqual({
name: 'Ethereum',
chainId: BigInt(ChainId.ETHEREUM),
chainId: ChainId.ETHEREUM,
nativeCurrency: {
symbol: 'ETH',
decimals: 18,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('WalletContext', () => {
});
expect(network).toEqual({
name: 'Ethereum',
chainId: BigInt(ChainId.ETHEREUM),
chainId: ChainId.ETHEREUM,
nativeCurrency: {
symbol: 'ETH',
decimals: 18,
Expand Down

0 comments on commit 256faa6

Please sign in to comment.