1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00

add tests for dynamic xml with lowercase doctype (#10845)

This commit is contained in:
chris48s 2025-01-24 21:22:12 +00:00 committed by GitHub
parent d8101f8c03
commit 2c32e02bd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -156,6 +156,16 @@ describe('DynamicXml', function () {
}).expect({
values: ['Herman Melville - Moby-Dick'],
})
// lowercase doctype
// https://github.com/badges/shields/issues/10827
given({
pathExpression: '//h1[1]',
buffer: exampleHtml.replace('<!DOCTYPE html>', '<!doctype html>'),
contentType: 'text/html',
}).expect({
values: ['Herman Melville - Moby-Dick'],
})
})
test(DynamicXml.prototype.getmimeType, () => {