Skip to content

Commit 132ba5f

Browse files
chore(lint): apply lint fixes
1 parent 2f71fb6 commit 132ba5f

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

packages/sdk/src/lib/types/commonTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export interface SearchableDataSchema
123123
export type MatchOptions = {
124124
useVoucher: boolean;
125125
voucherAddress?: string;
126+
allowDeposit?: boolean;
126127
};
127128

128129
export type DefaultWorkerpoolConsumer = {

packages/sdk/tests/e2e/dataProtectorCore/processProtectedData.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,11 @@ describe('dataProtectorCore.processProtectedData() (waitForResult: false)', () =
483483
expect(caughtError).toBeInstanceOf(Error);
484484
expect(caughtError?.message).toBe('Failed to process protected data');
485485
const causeMsg =
486-
caughtError?.errorCause?.message ||
487-
caughtError?.cause?.message ||
488-
caughtError?.cause ||
489-
caughtError?.errorCause;
486+
(caughtError as any)?.errorCause?.message ||
487+
(caughtError as any)?.cause?.message ||
488+
(caughtError as any)?.cause ||
489+
(caughtError as any)?.errorCause;
490+
490491
expect(causeMsg).toBe(
491492
`Cost per task (${workerpoolprice} nRlc) is greater than requester account stake (0). Orders can't be matched. If you are the requester, you should deposit to top up your account`
492493
);

packages/sdk/tests/unit/dataProtectorCore/getGrantedAccess.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ describe('getGrantedAccess', () => {
154154
).rejects.toThrow(
155155
new WorkflowError({
156156
message: 'Failed to fetch granted access',
157-
errorCause: new Error('orders?.map is not a function'),
157+
errorCause: new Error('orders.map is not a function'),
158158
})
159159
);
160160
});

0 commit comments

Comments
 (0)