Skip to content

Commit

Permalink
test: sort queries for consistent comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 26, 2023
1 parent cdd25d8 commit a36ed51
Showing 1 changed file with 78 additions and 78 deletions.
156 changes: 78 additions & 78 deletions src/__tests__/queries.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,55 +25,55 @@ describe("when @testing-library/dom is not available", () => {
it("uses the default queries", () => {
const { queries } = requireQueries(true);

expect(queries).toStrictEqual([
expect([...queries].sort()).toStrictEqual([
"findAllByAltText",
"findAllByDisplayValue",
"findAllByLabelText",
"findByLabelText",
"getAllByLabelText",
"getByLabelText",
"queryAllByLabelText",
"queryByLabelText",
"findAllByPlaceholderText",
"findByPlaceholderText",
"getAllByPlaceholderText",
"getByPlaceholderText",
"queryAllByPlaceholderText",
"queryByPlaceholderText",
"findAllByRole",
"findAllByTestId",
"findAllByText",
"findByText",
"getAllByText",
"getByText",
"queryAllByText",
"queryByText",
"findAllByDisplayValue",
"findByDisplayValue",
"getAllByDisplayValue",
"getByDisplayValue",
"queryAllByDisplayValue",
"queryByDisplayValue",
"findAllByAltText",
"findByAltText",
"getAllByAltText",
"getByAltText",
"queryAllByAltText",
"queryByAltText",
"findAllByTitle",
"findByTitle",
"getAllByTitle",
"getByTitle",
"queryAllByTitle",
"queryByTitle",
"findAllByRole",
"findByAltText",
"findByDisplayValue",
"findByLabelText",
"findByPlaceholderText",
"findByRole",
"getAllByRole",
"getByRole",
"queryAllByRole",
"queryByRole",
"findAllByTestId",
"findByTestId",
"findByText",
"findByTitle",
"getAllByAltText",
"getAllByDisplayValue",
"getAllByLabelText",
"getAllByPlaceholderText",
"getAllByRole",
"getAllByTestId",
"getAllByText",
"getAllByTitle",
"getByAltText",
"getByDisplayValue",
"getByLabelText",
"getByPlaceholderText",
"getByRole",
"getByTestId",
"getByText",
"getByTitle",
"queryAllByAltText",
"queryAllByDisplayValue",
"queryAllByLabelText",
"queryAllByPlaceholderText",
"queryAllByRole",
"queryAllByTestId",
"queryAllByText",
"queryAllByTitle",
"queryByAltText",
"queryByDisplayValue",
"queryByLabelText",
"queryByPlaceholderText",
"queryByRole",
"queryByTestId",
"queryByText",
"queryByTitle",
]);
});
});
Expand All @@ -82,55 +82,55 @@ describe("when @testing-library/dom is available", () => {
it("returns the queries from the library", () => {
const { queries } = requireQueries(false);

expect(queries).toStrictEqual([
expect([...queries].sort()).toStrictEqual([
"findAllByAltText",
"findAllByDisplayValue",
"findAllByLabelText",
"findByLabelText",
"getAllByLabelText",
"getByLabelText",
"queryAllByLabelText",
"queryByLabelText",
"findAllByPlaceholderText",
"findByPlaceholderText",
"getAllByPlaceholderText",
"getByPlaceholderText",
"queryAllByPlaceholderText",
"queryByPlaceholderText",
"findAllByRole",
"findAllByTestId",
"findAllByText",
"findByText",
"getAllByText",
"getByText",
"queryAllByText",
"queryByText",
"findAllByDisplayValue",
"findByDisplayValue",
"getAllByDisplayValue",
"getByDisplayValue",
"queryAllByDisplayValue",
"queryByDisplayValue",
"findAllByAltText",
"findByAltText",
"getAllByAltText",
"getByAltText",
"queryAllByAltText",
"queryByAltText",
"findAllByTitle",
"findByTitle",
"getAllByTitle",
"getByTitle",
"queryAllByTitle",
"queryByTitle",
"findAllByRole",
"findByAltText",
"findByDisplayValue",
"findByLabelText",
"findByPlaceholderText",
"findByRole",
"getAllByRole",
"getByRole",
"queryAllByRole",
"queryByRole",
"findAllByTestId",
"findByTestId",
"findByText",
"findByTitle",
"getAllByAltText",
"getAllByDisplayValue",
"getAllByLabelText",
"getAllByPlaceholderText",
"getAllByRole",
"getAllByTestId",
"getAllByText",
"getAllByTitle",
"getByAltText",
"getByDisplayValue",
"getByLabelText",
"getByPlaceholderText",
"getByRole",
"getByTestId",
"getByText",
"getByTitle",
"queryAllByAltText",
"queryAllByDisplayValue",
"queryAllByLabelText",
"queryAllByPlaceholderText",
"queryAllByRole",
"queryAllByTestId",
"queryAllByText",
"queryAllByTitle",
"queryByAltText",
"queryByDisplayValue",
"queryByLabelText",
"queryByPlaceholderText",
"queryByRole",
"queryByTestId",
"queryByText",
"queryByTitle",
]);
});

Expand Down

0 comments on commit a36ed51

Please sign in to comment.