Skip to content

Commit

Permalink
fix(react-drawer): resolve TODOs (#29272)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmoura authored Sep 25, 2023
1 parent fbaba50 commit 2828134
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "fix: resolve technical debts",
"packageName": "@fluentui/react-drawer",
"email": "marcosvmmoura@gmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useDrawerFooterStyles_unstable } from './useDrawerFooterStyles.styles';
import type { DrawerFooterProps } from './DrawerFooter.types';

/**
* DrawerFooter component - TODO: add more docs
* DrawerFooter provides a structured footer for the drawer component.
*/
export const DrawerFooter: ForwardRefComponent<DrawerFooterProps> = React.forwardRef((props, ref) => {
const state = useDrawerFooter_unstable(props, ref);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ describe('DrawerHeaderNavigation', () => {
displayName: 'DrawerHeaderNavigation',
});

// TODO add more tests here, and create visual regression tests in /apps/vr-tests

it('renders a default state', () => {
const result = render(<DrawerHeaderNavigation>Default DrawerHeaderNavigation</DrawerHeaderNavigation>);
expect(result.container).toMatchInlineSnapshot(`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ describe('DrawerHeaderTitle', () => {
disabledTests: ['component-has-static-classnames-object'],
});

// TODO add more tests here, and create visual regression tests in /apps/vr-tests

it('renders a default state', () => {
const result = render(<DrawerHeaderTitle>Default DrawerHeaderTitle</DrawerHeaderTitle>);
expect(result.container).toMatchInlineSnapshot(`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ describe('DrawerInline', () => {
disabledTests: ['make-styles-overrides-win'],
});

// TODO add more tests here, and create visual regression tests in /apps/vr-tests

it('renders a default state', () => {
const result = render(<DrawerInline>Default Drawer</DrawerInline>);
expect(result.container).toMatchInlineSnapshot(`<div />`);
Expand Down

0 comments on commit 2828134

Please sign in to comment.