|
const res = await request.get<{ value: any[] }>(requestOptions); |
We should refactor the request.get<{ value: any[] }>(...) which doesn't support pagination to odata.getAllItems<any>(...)
See PR #3684 for inspiration
Also implement a sinon.stub(pid, 'getProcessName').callsFake(() => ''); and auth.service.connected = false; in the test while touching this code.
cli-microsoft365/src/m365/pp/commands/dataverse/dataverse-table-list.ts
Line 72 in fd24b4e
We should refactor the
request.get<{ value: any[] }>(...)which doesn't support pagination toodata.getAllItems<any>(...)See PR #3684 for inspiration
Also implement a
sinon.stub(pid, 'getProcessName').callsFake(() => '');andauth.service.connected = false;in the test while touching this code.