From 9bc0732cabae693c4985eb81e6aafe32d1a884d7 Mon Sep 17 00:00:00 2001 From: Wilco Fiers Date: Fri, 5 Jul 2024 13:20:28 +0200 Subject: [PATCH] Added suggestion --- test/core/utils/is-context.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/core/utils/is-context.js b/test/core/utils/is-context.js index 2a3043186a..cd005c62b4 100644 --- a/test/core/utils/is-context.js +++ b/test/core/utils/is-context.js @@ -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', () => {