From a96d372df2f4cc9736be0c2a9a35b9a04d0e2f04 Mon Sep 17 00:00:00 2001 From: Andrey Chalkin Date: Sat, 21 Oct 2023 01:01:17 +0200 Subject: [PATCH] refactor: fix unit test --- lib/decorators/error-handler.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decorators/error-handler.spec.ts b/lib/decorators/error-handler.spec.ts index 4d80f25e..be41e058 100644 --- a/lib/decorators/error-handler.spec.ts +++ b/lib/decorators/error-handler.spec.ts @@ -22,7 +22,7 @@ describe('Decorators: @IErrorHandler', function () { } } - expect(getErrorHandlerContainer(WithHandlers)).toBe(3); + expect(getErrorHandlerContainer(WithHandlers).length).toBe(3); const [typeErrorHandler, headersErrorHandler, genericHandler] = getErrorHandlerContainer(WithHandlers); expect(typeErrorHandler.accepts(undefined)).toBe(false);