This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 1 file changed +3
-3
lines changed
test/components/views/rooms/wysiwyg_composer/components
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -168,16 +168,16 @@ describe("FormattingButtons", () => {
168
168
expect ( screen . queryByLabelText ( "Indent decrease" ) ) . not . toBeInTheDocument ( ) ;
169
169
} ) ;
170
170
171
- it ( "Shows indent and unindent buttons when either list is reversed" , ( ) => {
172
- const orderedListActive = { ...createActionStates ( "reversed" ) , orderedList : "active " } ;
171
+ it ( "Shows indent and unindent buttons when either a single list type is ' reversed' " , ( ) => {
172
+ const orderedListActive = { ...defaultActionStates , orderedList : "reversed " } ;
173
173
renderComponent ( { actionStates : orderedListActive } ) ;
174
174
175
175
expect ( screen . getByLabelText ( "Indent increase" ) ) . toBeInTheDocument ( ) ;
176
176
expect ( screen . getByLabelText ( "Indent decrease" ) ) . toBeInTheDocument ( ) ;
177
177
178
178
cleanup ( ) ;
179
179
180
- const unorderedListActive = { ...createActionStates ( "reversed" ) , unorderedList : "active " } ;
180
+ const unorderedListActive = { ...defaultActionStates , unorderedList : "reversed " } ;
181
181
182
182
renderComponent ( { actionStates : unorderedListActive } ) ;
183
183
You can’t perform that action at this time.
0 commit comments