Skip to content

Commit

Permalink
Added suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Jul 5, 2024
1 parent f379804 commit 9bc0732
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/core/utils/is-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ describe('axe.utils isContext* methods', () => {
it('is true for an object with both `include` and `exclude`', () => {
assert.isTrue(isContextObject({ include: 'string', exclude: 'string' }));
});

it('is true for an object with a valid `include` and invalid `exclude`', () => {
assert.isTrue(isContextObject({ include: [], exclude: 1 }));
});

it('is true for an object with a valid `exclude` and invalid `include`', () => {
assert.isTrue(isContextObject({ exclude: [], include: 1 }));
});
});

describe('isContextSpec', () => {
Expand Down

0 comments on commit 9bc0732

Please sign in to comment.