Skip to content

Commit

Permalink
Added required unit test enabled_client related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gyaneshgouraw-okta committed Jun 20, 2024
1 parent 6b2ee27 commit 8758f0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/management/connections.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe('ConnectionsManager', () => {
strategy: 'auth0',
realms: ['test'],
is_domain_connection: false,
enabled_clients: ['test'],
metadata: {
test: 'test value',
},
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -172,6 +174,7 @@ describe('ConnectionsManager', () => {
strategy: 'auth0',
realms: ['test'],
is_domain_connection: false,
enabled_clients: ['test'],
metadata: {
test: 'test value',
},
Expand Down Expand Up @@ -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();
});
Expand Down

0 comments on commit 8758f0f

Please sign in to comment.