Skip to content

Commit

Permalink
chore(react-message-bar): rename deprecated import
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Jan 9, 2025
1 parent 6cc5765 commit 7ae2e75
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { render } from '@testing-library/react';
import { isConformant } from '../../testing/isConformant';
import { MessageBar } from './MessageBar';
import { AnnounceProvider_unstable } from '@fluentui/react-shared-contexts';
import { AnnounceProvider } from '@fluentui/react-shared-contexts';
import { MessageBarBody } from '../MessageBarBody/MessageBarBody';
import { MessageBarTitle } from '../MessageBarTitle/MessageBarTitle';
import { MessageBarActions } from '../MessageBarActions/MessageBarActions';
Expand Down Expand Up @@ -67,13 +67,13 @@ describe('MessageBar', () => {
])('should announce %s with %s intent', (politeness, intent) => {
const announce = jest.fn();
render(
<AnnounceProvider_unstable value={{ announce }}>
<AnnounceProvider value={{ announce }}>
<MessageBar intent={intent}>
<MessageBarBody>
<MessageBarTitle>Title</MessageBarTitle>Body
</MessageBarBody>
</MessageBar>
</AnnounceProvider_unstable>,
</AnnounceProvider>,
);

expect(announce).toHaveBeenCalledTimes(1);
Expand All @@ -86,7 +86,7 @@ describe('MessageBar', () => {
it('should announce actions', () => {
const announce = jest.fn();
render(
<AnnounceProvider_unstable value={{ announce }}>
<AnnounceProvider value={{ announce }}>
<MessageBar>
<MessageBarBody>
<MessageBarTitle>Title</MessageBarTitle>Body
Expand All @@ -96,7 +96,7 @@ describe('MessageBar', () => {
<button>Action 2</button>
</MessageBarActions>
</MessageBar>
</AnnounceProvider_unstable>,
</AnnounceProvider>,
);

expect(announce).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 7ae2e75

Please sign in to comment.