From 32ab834834808baf45a835a3bb57923e7aa067b1 Mon Sep 17 00:00:00 2001 From: Gabriel Rosa Date: Mon, 1 Aug 2022 13:46:27 -0300 Subject: [PATCH] FIX: fix user.decorator tests failing because of missing access_token on fakeUserPayload --- src/authentication/user.decorator.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/authentication/user.decorator.spec.ts b/src/authentication/user.decorator.spec.ts index 30d4baa..9af2ebd 100644 --- a/src/authentication/user.decorator.spec.ts +++ b/src/authentication/user.decorator.spec.ts @@ -55,6 +55,7 @@ describe('user.decorator', () => { customer_id: '9d18e8ae-24b9-41a3-9e8f-a25ce57555b11', customer_name: 'dadosfera', customer_tier: 'BASIC', + access_token: '', }; beforeAll(async () => { @@ -176,5 +177,6 @@ describe('user.decorator', () => { UserTest(null); const token = CreateToken(); + fakeUserPayload.access_token = token; UserTest(token); });