Skip to content

Commit

Permalink
add tests for dynamic xml with lowercase doctype (badges#10845)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s authored Jan 24, 2025
1 parent d8101f8 commit 2c32e02
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions services/dynamic/dynamic-xml.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, () => {
Expand Down

0 comments on commit 2c32e02

Please sign in to comment.