Skip to content

Commit

Permalink
chore: Clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Carvalho committed Sep 20, 2023
1 parent d36a5e0 commit ec8ade6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/anchor-navigation/__integ__/anchor-navigation.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//import * as React from 'react';
//import { AnchorNavigationWrapper } from '../../../lib/components/test-utils/dom';
import { BasePageObject } from '@cloudscape-design/browser-test-tools/page-objects';
import useBrowser from '@cloudscape-design/browser-test-tools/use-browser';
import createWrapper from '../../../lib/components/test-utils/selectors';
Expand Down
1 change: 1 addition & 0 deletions src/anchor-navigation/__tests__/anchor-navigation.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ describe('AnchorNavigation', () => {
],
activeHref: '#section2',
});
expect(wrapper.findActiveAnchor()!.findText()?.getElement()).toHaveTextContent('Section 2');
expect(wrapper.findAnchorByIndex(1)!.isActive()).toBe(false);
expect(wrapper.findAnchorByIndex(2)!.isActive()).toBe(true);
});
Expand Down

0 comments on commit ec8ade6

Please sign in to comment.