Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5fa367b

Browse files
author
Alun Turner
committed
improve clarity of new tests
1 parent 8742c86 commit 5fa367b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/components/views/rooms/wysiwyg_composer/components/FormattingButtons-test.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,16 @@ describe("FormattingButtons", () => {
168168
expect(screen.queryByLabelText("Indent decrease")).not.toBeInTheDocument();
169169
});
170170

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" };
173173
renderComponent({ actionStates: orderedListActive });
174174

175175
expect(screen.getByLabelText("Indent increase")).toBeInTheDocument();
176176
expect(screen.getByLabelText("Indent decrease")).toBeInTheDocument();
177177

178178
cleanup();
179179

180-
const unorderedListActive = { ...createActionStates("reversed"), unorderedList: "active" };
180+
const unorderedListActive = { ...defaultActionStates, unorderedList: "reversed" };
181181

182182
renderComponent({ actionStates: unorderedListActive });
183183

0 commit comments

Comments
 (0)