Skip to content

Commit 0d4b9d6

Browse files
sdk: unit test - enable fetchWorkerpoolOrderbook test for WHITELIST SC App restrict
1 parent c22d0ee commit 0d4b9d6

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

tests/unit/sendTelegram.test.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -234,20 +234,19 @@ describe('sendTelegram', () => {
234234
category: 0,
235235
}
236236
);
237-
// TODO enable this test when prod whitelist is implemented and app ens prod is available
238-
// expect(iexec.orderbook.fetchWorkerpoolOrderbook).toHaveBeenNthCalledWith(
239-
// 2,
240-
// {
241-
// workerpool: TEST_CHAIN.prodWorkerpool,
242-
// app: WHITELIST_SMART_CONTRACT_ADDRESS.toLowerCase(),
243-
// dataset: protectedData,
244-
// requester: userAddress,
245-
// isRequesterStrict: false,
246-
// minTag: ['tee', 'scone'],
247-
// maxTag: ['tee', 'scone'],
248-
// category: 0,
249-
// }
250-
// );
237+
expect(iexec.orderbook.fetchWorkerpoolOrderbook).toHaveBeenNthCalledWith(
238+
2,
239+
{
240+
workerpool: TEST_CHAIN.prodWorkerpool,
241+
app: WHITELIST_SMART_CONTRACT_ADDRESS.toLowerCase(),
242+
dataset: protectedData,
243+
requester: userAddress,
244+
isRequesterStrict: false,
245+
minTag: ['tee', 'scone'],
246+
maxTag: ['tee', 'scone'],
247+
category: 0,
248+
}
249+
);
251250
});
252251
});
253252
});

0 commit comments

Comments
 (0)