Skip to content

Commit 0a64953

Browse files
add constructor config to unit test
1 parent fd185bb commit 0a64953

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/sdk/tests/unit/constructor.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('IExecDataProtector()', () => {
1111
getWeb3Provider(Wallet.createRandom().privateKey)
1212
);
1313
const ipfsNode = dataProtector['ipfsNode'];
14-
expect(ipfsNode).toStrictEqual(DEFAULT_IEXEC_IPFS_NODE);
14+
expect(ipfsNode).toStrictEqual(CHAIN_CONFIG['134'].ipfsNode);
1515
});
1616

1717
it('should use provided ipfs node url when ipfsNode is provided', async () => {
@@ -31,7 +31,7 @@ describe('IExecDataProtector()', () => {
3131
getWeb3Provider(Wallet.createRandom().privateKey)
3232
);
3333
const ipfsGateway = dataProtector['ipfsGateway'];
34-
expect(ipfsGateway).toStrictEqual(DEFAULT_IPFS_GATEWAY);
34+
expect(ipfsGateway).toStrictEqual(CHAIN_CONFIG['134'].ipfsGateway);
3535
});
3636

3737
it('should use default ipfs gateway url when ipfsGateway is provided', async () => {
@@ -77,7 +77,7 @@ describe('IExecDataProtector()', () => {
7777
getWeb3Provider(Wallet.createRandom().privateKey)
7878
);
7979
const graphQLClientUrl = dataProtector['graphQLClient'];
80-
expect(graphQLClientUrl['url']).toBe(DEFAULT_SUBGRAPH_URL);
80+
expect(graphQLClientUrl['url']).toBe(CHAIN_CONFIG['134'].subgraphUrl);
8181
});
8282

8383
it('should use provided subgraph URL when subgraphUrl is provided', async () => {

0 commit comments

Comments
 (0)