Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewMusgrave committed Oct 22, 2019
1 parent a25fca5 commit 0ba6a36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utilities/tests/focus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ describe('nextFocusableNode', () => {
expect(nextFocusableNode(activator)).toBeNull();
});

it('filters out elements', () => {
const {activator} = domSetup();

expect(nextFocusableNode(activator, () => false)).toBeNull();
});

it("returns the parent of an adjacent element when it's focusable", () => {
const {activator, otherNode} = domSetup();

Expand Down

0 comments on commit 0ba6a36

Please sign in to comment.