Language: TypeScript
Label: safe
CWE: CWE-287 \u2014 Improper Authentication
When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

Code:
            userLocator: expect.any(String),
            cluster: 'Default cluster',
            agentId: expect.any(String),
          },
          facts: [
            {
              type: 'loadedPackages',
              data: bodyNoToken.data,
            },
          ],
        });
      });

    await scrapeData();

    try {
      expect(nock.isDone()).toBeTruthy();
    } catch (err) {
      console.error(`nock pending mocks: ${nock.pendingMocks()}`);
      throw err;
    }
  });
});