Skip to content

Commit

Permalink
make it clear that these methods shouldn't be chained
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 14, 2020
1 parent 6336bba commit 6364d0f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/utils/init.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ declare namespace Chai {
* Does not replace accessibility check as that requires display/visibility/layout
* @deprecated Use `inaccessible` + `visible` instead
*/
toBeAriaHidden(): Assertion;
toBeAriaHidden(): void;
/**
* Check if an element is not visually hidden
*/
toBeVisible(): Assertion;
toBeVisible(): void;
/**
* checks if the element is inaccessible
*/
toBeInaccessible(): Assertion;
toBeInaccessible(): void;
/**
* checks if the accessible name computation (according to `accname` spec)
* matches the expectation.
* @see https://www.w3.org/TR/accname-1.2/
* @param name
*/
toHaveAccessibleName(name: string): Assertion;
toHaveAccessibleName(name: string): void;
/**
* checks if the element is focused
*/
toHaveFocus(): Assertion;
toHaveFocus(): void;
}
}

0 comments on commit 6364d0f

Please sign in to comment.