From 03ddbbc3b0f12ff8c9ff1121a5bd592a5dad925f Mon Sep 17 00:00:00 2001 From: marcus-sa Date: Wed, 29 Nov 2023 15:49:21 +0100 Subject: [PATCH] test(core): update broker bus channel return type test --- packages/core/src/lib/types-builder.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/lib/types-builder.spec.ts b/packages/core/src/lib/types-builder.spec.ts index 066b5b6..e5b26bb 100644 --- a/packages/core/src/lib/types-builder.spec.ts +++ b/packages/core/src/lib/types-builder.spec.ts @@ -356,17 +356,17 @@ describe('TypesBuilder', () => { expect(type).toMatchInlineSnapshot(`"String!"`); }); - test('BrokerBus return type', () => { + test('BrokerBusChannel return type', () => { type UserCreatedEvent = { type: 'user-created'; id: number }; // @ts-expect-error type only - function test(): BrokerBus {} + function test(): BrokerBusChannel {} const reflectionMethod = ReflectionMethod.from(test); const returnType = reflectionMethod.getReturnType(); const type = builder.createReturnType(returnType); - expect(type).toMatchInlineSnapshot(`"BrokerBus!"`); + expect(type).toMatchInlineSnapshot(`"UserCreatedEvent!"`); }); test('interface array', () => {