Skip to content

Commit 93decc8

Browse files
resolvewithnoorder adjustement
1 parent a6e460f commit 93decc8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ describe('dataProtectorCore.grantAccess()', () => {
255255
const authorizedAppAddress = getRandomAddress();
256256
const iexec = {
257257
orderbook: {
258-
fetchDatasetOrderbook: resolveWithNoOrder(), // Say that access does not yet exist
258+
fetchDatasetOrderbook: jest
259+
.fn<() => Promise<{ orders: []; count: 0 }>>()
260+
.mockResolvedValue(resolveWithNoOrder()), // Say that access does not yet exist
259261
},
260262
app: {
261263
checkDeployedApp: jest.fn().mockReturnValue(true),

0 commit comments

Comments
 (0)