Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed May 10, 2021
1 parent f442549 commit 5af826f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ describe("helpers", () => {
describe("groupSelectors", () => {
it("should group selectors", () => {
const selector = parse("foo, bar, baz, :first, :last");
const [plainSelectors, filteredSelectors] = groupSelectors(
selector
);
const [plainSelectors, filteredSelectors] =
groupSelectors(selector);

expect(plainSelectors).toHaveLength(3);
expect(filteredSelectors).toHaveLength(2);
Expand All @@ -17,9 +16,8 @@ describe("helpers", () => {
const selector = parse(
"foo, bar, baz, :not(:last), :not(:not(:first))"
);
const [plainSelectors, filteredSelectors] = groupSelectors(
selector
);
const [plainSelectors, filteredSelectors] =
groupSelectors(selector);

expect(plainSelectors).toHaveLength(3);
expect(filteredSelectors).toHaveLength(2);
Expand Down
2 changes: 1 addition & 1 deletion test/sizzle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("Sizzle", () => {
expect(select("", document)).toHaveLength(0);
// Text element as context fails silently
expect(
select("div", (document.createTextNode("") as Node) as Element)
select("div", document.createTextNode("") as Node as Element)
).toStrictEqual([]);
const form = document.getElementById("form");
// Empty string passed to matchesSelector does not match
Expand Down

0 comments on commit 5af826f

Please sign in to comment.