it('set new cached content with generated key', async () => { mockCacheKeys.push(cacheKeyA, cacheKeyB); const endpoint = await getEndpoint(); await endpoint(mockReq, mockRes); expect(mockCache.setStub).toHaveBeenCalledWith( '_AB', expect.stringContaining('use strict') ); });
it('set new cached content with generated key', async () => { mockCacheKeys.push(cacheKeyA, cacheKeyB); const endpoint = await getEndpoint(); await endpoint(mockReq, mockRes); expect(mockCache.setStub).toHaveBeenCalledWith( '_AB', expect.stringContaining('use strict') ); });