From 3da606fc03c8172cbc356c777ff9523e4c6217e0 Mon Sep 17 00:00:00 2001 From: Patrick Ear Date: Thu, 2 May 2024 15:05:22 +0200 Subject: [PATCH] review --- src/react/ui-elements/SelectAccountIAMRole.tsx | 2 +- src/react/ui-elements/__tests__/SelectAccountIAMRole.test.tsx | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/react/ui-elements/SelectAccountIAMRole.tsx b/src/react/ui-elements/SelectAccountIAMRole.tsx index ba81596e1..f06a5748c 100644 --- a/src/react/ui-elements/SelectAccountIAMRole.tsx +++ b/src/react/ui-elements/SelectAccountIAMRole.tsx @@ -75,7 +75,7 @@ const AssumeDefaultIAMRole = ({ defaultValue, }: Pick) => { const accessibleAccountsAdapter = useAccessibleAccountsAdapter(); - const metricsAdapter = new NoOppMetricsAdapter(); + const metricsAdapter = new NoOpMetricsAdapter(); const accounts = useListAccounts({ accessibleAccountsAdapter, metricsAdapter, diff --git a/src/react/ui-elements/__tests__/SelectAccountIAMRole.test.tsx b/src/react/ui-elements/__tests__/SelectAccountIAMRole.test.tsx index ce0c86c44..753193413 100644 --- a/src/react/ui-elements/__tests__/SelectAccountIAMRole.test.tsx +++ b/src/react/ui-elements/__tests__/SelectAccountIAMRole.test.tsx @@ -304,8 +304,6 @@ describe('SelectAccountIAMRole', () => { }); expect(screen.getByText('no-bucket')).toBeInTheDocument(); - - debug(); }); it('renders with wrong default value', async () => { @@ -363,7 +361,5 @@ describe('SelectAccountIAMRole', () => { await userEvent.type(seletors.roleSelect(), 'data-consumer'); expect(screen.getByText(/no options/i)).toBeInTheDocument(); - - }); });