Rename wysiwyg prop into composer

This commit is contained in:
Florian Duros 2022-10-14 10:56:34 +02:00
parent 6b6af28ea9
commit c0bf45fddc
No known key found for this signature in database
GPG key ID: 9700AA5870258A0B
3 changed files with 10 additions and 10 deletions

View file

@ -41,7 +41,7 @@ describe('FormattingButtons', () => {
it('Should have the correspond CSS classes', () => {
// When
render(<FormattingButtons wysiwyg={wysiwyg} formattingStates={formattingStates} />);
render(<FormattingButtons composer={wysiwyg} formattingStates={formattingStates} />);
// Then
expect(screen.getByLabelText('Bold')).toHaveClass('mx_FormattingButtons_active');
@ -52,7 +52,7 @@ describe('FormattingButtons', () => {
it('Should call wysiwyg function on button click', () => {
// When
render(<FormattingButtons wysiwyg={wysiwyg} formattingStates={formattingStates} />);
render(<FormattingButtons composer={wysiwyg} formattingStates={formattingStates} />);
screen.getByLabelText('Bold').click();
screen.getByLabelText('Italic').click();
screen.getByLabelText('Underline').click();
@ -68,7 +68,7 @@ describe('FormattingButtons', () => {
it('Should display the tooltip on mouse over', async () => {
// When
const user = userEvent.setup();
render(<FormattingButtons wysiwyg={wysiwyg} formattingStates={formattingStates} />);
render(<FormattingButtons composer={wysiwyg} formattingStates={formattingStates} />);
await user.hover(screen.getByLabelText('Bold'));
// Then