From d12c072a3ca794358df8623ce43def4ebfa9690a Mon Sep 17 00:00:00 2001 From: Marius Andra Date: Thu, 19 Dec 2024 16:56:09 +0100 Subject: [PATCH] remove not needed parts --- plugin-server/tests/cdp/examples.ts | 70 -------------------- plugin-server/tests/cdp/hog-executor.test.ts | 26 -------- 2 files changed, 96 deletions(-) diff --git a/plugin-server/tests/cdp/examples.ts b/plugin-server/tests/cdp/examples.ts index 4cd5da6161afb..f92dd9ed4f97a 100644 --- a/plugin-server/tests/cdp/examples.ts +++ b/plugin-server/tests/cdp/examples.ts @@ -481,76 +481,6 @@ export const HOG_INPUTS_EXAMPLES: Record> = { diff --git a/plugin-server/tests/cdp/hog-executor.test.ts b/plugin-server/tests/cdp/hog-executor.test.ts index 9dc101040c6e9..aeacc1067d0f4 100644 --- a/plugin-server/tests/cdp/hog-executor.test.ts +++ b/plugin-server/tests/cdp/hog-executor.test.ts @@ -662,30 +662,4 @@ describe('Hog Executor', () => { ) }) }) - - describe('inputs building', () => { - // TODO: Fix these tests - it('builds inputs from bytecode with input dependencies', () => { - const fn = createHogFunction({ - ...HOG_EXAMPLES.simple_fetch, - ...HOG_INPUTS_EXAMPLES.inputs_reference_working, - ...HOG_FILTERS_EXAMPLES.no_filters, - }) - - const result = executor.buildHogFunctionGlobals(createInvocation(fn)) - expect(result.inputs).toMatchInlineSnapshot() - }) - - it('throws an error if there is a circular dependency', () => { - const fn = createHogFunction({ - ...HOG_EXAMPLES.simple_fetch, - ...HOG_INPUTS_EXAMPLES.inputs_reference_circular, - ...HOG_FILTERS_EXAMPLES.no_filters, - }) - - expect(() => executor.buildHogFunctionGlobals(createInvocation(fn))).toThrow( - 'Circular dependency detected in inputs: circular_2 -> circular' - ) - }) - }) })