Update dependency happy-dom to v16 (forgejo) (#6454)

Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
This commit is contained in:
Renovate Bot 2025-01-07 11:38:58 +00:00 committed by forgejo-renovate-action
parent 7f9e313ec1
commit 6169090c13
3 changed files with 6 additions and 10 deletions

View file

@ -6,9 +6,6 @@ import {
} from './utils.js';
afterEach(() => {
// Reset head and body sections of the document
document.documentElement.innerHTML = '<head></head><body></body>';
// Remove 'lang' and 'style' attributes of html tag
document.documentElement.removeAttribute('lang');
document.documentElement.removeAttribute('style');
@ -173,7 +170,7 @@ test('serializeXml', () => {
const tagName = 'item';
const node = document.createElement(tagName);
node.textContent = textStr;
expect(serializeXml(node)).toEqual(`<${tagName}>${textStr}</${tagName}>`);
expect(serializeXml(node)).toEqual(`<${tagName} xmlns="http://www.w3.org/1999/xhtml">${textStr}</${tagName}>`);
});
test('sleep', async () => {