Skip to content

Commit

Permalink
test: snap (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
coding-ice authored Aug 15, 2024
1 parent f3f03a2 commit d9a5c6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils/nodeUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function convertItemsToNodes(
<MergedMenuItem key={mergedKey} {...restProps}>
{label}
{(!!extra || extra === 0) && (
<span className={`${prefixCls}-extra`}>{extra}</span>
<span className={`${prefixCls}-item-extra`}>{extra}</span>
)}
</MergedMenuItem>
);
Expand Down
4 changes: 2 additions & 2 deletions tests/__snapshots__/MenuItem.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`MenuItem overwrite default role should set extra to group option 1`] =
>
Menu Item 1
<span
class="rc-menu-extra"
class="rc-menu-item-extra"
>
⌘B
</span>
Expand All @@ -42,7 +42,7 @@ exports[`MenuItem overwrite default role should set extra to option 1`] = `
>
Top Menu Item
<span
class="rc-menu-extra"
class="rc-menu-item-extra"
>
⌘B
</span>
Expand Down

0 comments on commit d9a5c6a

Please sign in to comment.