File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11import { describe , it , expect } from '@jest/globals' ;
22import { IExecDataProtector } from '../../src/index.js' ;
3+ import { getTestConfig } from '../test-utils.js' ;
34
45describe ( 'When instantiating SDK without a signer' , ( ) => {
56 describe ( 'When calling a read method' , ( ) => {
67 it ( 'should work as expected' , async ( ) => {
78 // --- GIVEN
8- const dataProtector = new IExecDataProtector ( ) ;
9+ const dataProtector = new IExecDataProtector ( ... getTestConfig ( ) ) ;
910
1011 // --- WHEN/THEN
1112 await expect (
Original file line number Diff line number Diff line change @@ -39,9 +39,11 @@ export const getTestIExecOption = () => ({
3939} ) ;
4040
4141export const getTestConfig = (
42- privateKey : string
42+ privateKey ? : string
4343) : [ Web3SignerProvider , DataProtectorConfigOptions ] => {
44- const ethProvider = getTestWeb3SignerProvider ( privateKey ) ;
44+ const ethProvider = privateKey
45+ ? getTestWeb3SignerProvider ( privateKey )
46+ : undefined ;
4547 const options = {
4648 iexecOptions : getTestIExecOption ( ) ,
4749 ipfsGateway : process . env . DRONE
You can’t perform that action at this time.
0 commit comments