diff --git a/src/api/traversing.spec.ts b/src/api/traversing.spec.ts index 3494b6f9ab..b57baf6b32 100644 --- a/src/api/traversing.spec.ts +++ b/src/api/traversing.spec.ts @@ -104,6 +104,25 @@ describe('$(...)', () => { }).toThrow('Unknown pseudo-class :bah'); }); + it('should respect the `lowerCaseTags` option (#3495)', () => { + const q = load( + ` + blah + blah + `, + { + xml: { + xmlMode: true, + decodeEntities: false, + lowerCaseTags: true, + lowerCaseAttributeNames: false, + recognizeSelfClosing: true, + }, + }, + ); + expect(q('.myClass').find('firstTag > child')).toHaveLength(1); + }); + describe('(cheerio object) :', () => { it('returns only those nodes contained within the current selection', () => { const q = load(food);