From 0aa604f1c23214c297c0ee10868b6896c99dd61b Mon Sep 17 00:00:00 2001 From: gyaneshgouraw-okta Date: Thu, 20 Jun 2024 12:36:04 +0530 Subject: [PATCH] Added required unit test enabled_client related changes --- test/management/connections.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/management/connections.test.ts b/test/management/connections.test.ts index 8e8332d46..1e87eb017 100644 --- a/test/management/connections.test.ts +++ b/test/management/connections.test.ts @@ -55,6 +55,7 @@ describe('ConnectionsManager', () => { strategy: 'auth0', realms: ['test'], is_domain_connection: false, + enabled_clients: ['test'], metadata: { test: 'test value', }, @@ -97,6 +98,7 @@ describe('ConnectionsManager', () => { expect(connections.data[0].realms?.[0]).toBe(response[0].realms[0]); expect(connections.data[0].is_domain_connection).toBe(response[0].is_domain_connection); expect(connections.data[0].metadata?.test).toBe(response[0].metadata.test); + expect(connections.data[0].enabled_clients[0]).toBe(response[0].enabled_clients[0]); done(); }); @@ -172,6 +174,7 @@ describe('ConnectionsManager', () => { strategy: 'auth0', realms: ['test'], is_domain_connection: false, + enabled_clients: ['test'], metadata: { test: 'test value', }, @@ -209,6 +212,7 @@ describe('ConnectionsManager', () => { expect(connection.data.realms?.[0]).toBe(response.realms[0]); expect(connection.data.is_domain_connection).toBe(response.is_domain_connection); expect(connection.data.metadata?.test).toBe(response.metadata.test); + expect(connection.data.enabled_clients[0]).toBe(response.enabled_clients[0]); done(); });