npm package diff

Package: @forge/storage

Versions: 1.7.3 - 1.8.0-next.0

File: package/out/__test__/global-storage.test.js

Index: package/out/__test__/global-storage.test.js
===================================================================
--- package/out/__test__/global-storage.test.js
+++ package/out/__test__/global-storage.test.js
@@ -691,49 +691,8 @@
             passMetrics
                 ? checkMetricsFired(metricMocks, { store: 'untyped', operation: 'query', encrypted: false }, true)
                 : expect(metricMocks.mockMetrics.counter).not.toHaveBeenCalled();
         });
-        it('should query the appStoredEntitiesForCleanup endpoint given process.env.IS_CLEANUP_FUNCTION is set to true', async () => {
-            process.env.IS_CLEANUP_FUNCTION = 'true';
-            const apiClientMock = getApiClientMock({
-                data: {
-                    appStoredEntitiesForCleanup: {
-                        edges: [
-                            { node: { key: 'key1', value: 'testValue' }, cursor: 'cursor1' },
-                            { node: { key: 'key2', value: 'testValue' }, cursor: 'cursor2' }
-                        ]
-                    }
-                }
-            });
-            const metricMocks = getMetricMock();
-            const globalStorage = getStorage(apiClientMock, passMetrics ? metricMocks.mockMetrics : undefined);
-            const where = [
-                {
-                    field: 'key',
-                    condition: 'STARTS_WITH',
-                    value: 'test'
-                }
-            ];
-            const cursor = 'cursor';
-            const limit = 10;
-            const response = await globalStorage.list({ where, cursor, limit });
-            verifyApiClientCalledWith(apiClientMock, {
-                where,
-                cursor,
-                limit
-            }, gql_queries_1.UntypedQueries.listQueryForCleanup({}).query);
-            expect(response).toEqual(expect.objectContaining({
-                results: [
-                    { key: 'key1', value: 'testValue' },
-                    { key: 'key2', value: 'testValue' }
-                ],
-                nextCursor: 'cursor2'
-            }));
-            passMetrics
-                ? checkMetricsFired(metricMocks, { store: 'untyped', operation: 'query', encrypted: false }, true)
-                : expect(metricMocks.mockMetrics.counter).not.toHaveBeenCalled();
-            process.env.IS_CLEANUP_FUNCTION = '';
-        });
         it('should use default values', async () => {
             const apiClientMock = getApiClientMock({
                 data: {
                     appStoredEntities: {