From c3dc207d3e4f5ac26dcbac48bbafc2578ad1927a Mon Sep 17 00:00:00 2001 From: Thiago Ramalho Date: Fri, 28 Jun 2024 18:11:15 -0300 Subject: [PATCH] chore: update tests --- .../src/controllers/cache-crud.controller.e2e-spec.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/nestjs-cache/src/controllers/cache-crud.controller.e2e-spec.ts b/packages/nestjs-cache/src/controllers/cache-crud.controller.e2e-spec.ts index 0a44574f..44bfa39d 100644 --- a/packages/nestjs-cache/src/controllers/cache-crud.controller.e2e-spec.ts +++ b/packages/nestjs-cache/src/controllers/cache-crud.controller.e2e-spec.ts @@ -191,8 +191,15 @@ describe('CacheAssignmentController (e2e)', () => { }); }); - it.only('POST /cache/user null after create', async () => { - const payload: any = { + it('POST /cache/user null after create', async () => { + interface ExtendedCacheCreatableInterface + extends Pick< + CacheCreatableInterface, + 'key' | 'expiresIn' | 'type' | 'data' + > { + assignee: { id: string | null } | null; + } + const payload: ExtendedCacheCreatableInterface = { key: 'dashboard-1', type: 'filter', data: '{}',