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

Commit

Permalink
improve clarity of new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alun Turner committed Feb 13, 2023
1 parent 8742c86 commit 5fa367b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,16 @@ describe("FormattingButtons", () => {
expect(screen.queryByLabelText("Indent decrease")).not.toBeInTheDocument();
});

it("Shows indent and unindent buttons when either list is reversed", () => {
const orderedListActive = { ...createActionStates("reversed"), orderedList: "active" };
it("Shows indent and unindent buttons when either a single list type is 'reversed'", () => {
const orderedListActive = { ...defaultActionStates, orderedList: "reversed" };
renderComponent({ actionStates: orderedListActive });

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

cleanup();

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

renderComponent({ actionStates: unorderedListActive });

Expand Down

0 comments on commit 5fa367b

Please sign in to comment.