From 705b512f4a5cc36dd7b0d413c4d24b9ceab7ab4b Mon Sep 17 00:00:00 2001 From: sanjam chhatwal Date: Tue, 12 Dec 2023 18:49:33 +0400 Subject: [PATCH] fix: test fix --- .../hooks/useRegisterApp/__tests__/useRegisterApp.test.tsx | 1 + .../dashboard/register-app/__tests__/register-app.test.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/features/dashboard/hooks/useRegisterApp/__tests__/useRegisterApp.test.tsx b/src/features/dashboard/hooks/useRegisterApp/__tests__/useRegisterApp.test.tsx index b12336c52..c27985f0e 100644 --- a/src/features/dashboard/hooks/useRegisterApp/__tests__/useRegisterApp.test.tsx +++ b/src/features/dashboard/hooks/useRegisterApp/__tests__/useRegisterApp.test.tsx @@ -34,6 +34,7 @@ describe('Use Delete App', () => { expect(result.current.is_loading).toBeTruthy(); await expect(wsServer).toReceiveMessage({ + app_register: 1, name: 'app', redirect_uri: 'https://example.com', req_id: 1, diff --git a/src/features/dashboard/register-app/__tests__/register-app.test.tsx b/src/features/dashboard/register-app/__tests__/register-app.test.tsx index d7fad4163..6cb523f33 100644 --- a/src/features/dashboard/register-app/__tests__/register-app.test.tsx +++ b/src/features/dashboard/register-app/__tests__/register-app.test.tsx @@ -165,6 +165,7 @@ describe('Update App Dialog', () => { await expect(wsServer).toReceiveMessage({ app_markup_percentage: 0, + app_register: 1, name: 'test app name updated', redirect_uri: 'https://example.com', req_id: 1, @@ -238,6 +239,7 @@ describe('Update App Dialog', () => { await expect(wsServer).toReceiveMessage({ app_markup_percentage: 0, + app_register: 1, name: 'test app wrong name fake', redirect_uri: 'https://example.com', req_id: 1, @@ -249,6 +251,7 @@ describe('Update App Dialog', () => { echo_req: { app_markup_percentage: 0, name: 'test app wrong name fake', + app_register: 1, redirect_uri: 'https://example.com', req_id: 1, scopes: [],