From ae9dea3a5d1754fde5aa101bd89b40fe42597c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Tue, 19 Nov 2024 10:06:42 +0100 Subject: [PATCH] Fix test --- test/amqp/subscriber.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/amqp/subscriber.spec.ts b/test/amqp/subscriber.spec.ts index 68fc2b7..b309c19 100644 --- a/test/amqp/subscriber.spec.ts +++ b/test/amqp/subscriber.spec.ts @@ -116,8 +116,8 @@ describe('AMQP Subscriber', () => { expect(rawMessage.properties.contentType).toBeDefined(); expect(rawMessage.properties.contentType).toEqual('file'); expect(rawMessage.properties.headers).toBeDefined(); - expect(rawMessage.properties.headers.key).toBeDefined(); - expect(rawMessage.properties.headers.key).toEqual('value'); + expect(rawMessage.properties.headers?.key).toBeDefined(); + expect(rawMessage.properties.headers?.key).toEqual('value'); return dispose(); });