Skip to content

Commit

Permalink
Address some small comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengYanJin committed Mar 20, 2024
1 parent cf8aecd commit 8a0fd3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/react/ui-elements/Veeam/VeeamConfiguration.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ jest.mock('../../next-architecture/domain/business/accounts', () => ({

const mockUseStepper = useStepper as jest.Mock;
const mockUseAccountsLocationsAndEndpoints =
useAccountsLocationsAndEndpoints as jest.MockedFunction<
typeof useAccountsLocationsAndEndpoints
>;
useAccountsLocationsAndEndpoints as jest.Mock;
describe('Veeam Configuration UI', () => {
const selectors = {
accountNameInput: () => screen.getByLabelText(/account/i),
Expand All @@ -40,7 +38,6 @@ describe('Veeam Configuration UI', () => {
};

const mockUseAccountsImplementation = () => {
//@ts-ignore
mockUseAccountsLocationsAndEndpoints.mockImplementation(() => {
return {
accountsLocationsAndEndpoints: {
Expand Down Expand Up @@ -174,7 +171,6 @@ describe('Veeam Configuration UI', () => {

it('should prefilled with Veeam account is there is no account', async () => {
//S
//@ts-ignore
mockUseAccountsLocationsAndEndpoints.mockImplementation(() => {
return {
accountsLocationsAndEndpoints: {
Expand Down
2 changes: 1 addition & 1 deletion src/react/ui-elements/Veeam/VeeamConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const Configuration = () => {
status === 'success' &&
accounts.some((account) => account.name === accountName)
);
}, [accountName, status]);
}, [accountName, status, accounts]);

const onSubmit = ({
capacity,
Expand Down
2 changes: 1 addition & 1 deletion src/react/ui-elements/Veeam/VeeamSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const VeeamSummary = ({
<Text isEmphazed>
Your ARTESCA is now configured and ready to integrate with Veeam. <br />
The next steps involve managing Certificates and entering specific
PRODUCT details within the Veeam application
ARTESCA details within the Veeam application
</Text>
{isPlatformAdmin ? (
<Level4FormSection title={{ name: CERTIFICATE_SECTION_TITLE }}>
Expand Down

0 comments on commit 8a0fd3b

Please sign in to comment.