2489 - Clean up site js

This commit is contained in:
Jonathan Bobel
2025-04-07 15:25:29 -04:00
parent ee8213f670
commit 9921809f90
5 changed files with 6 additions and 194 deletions

View File

@@ -18,6 +18,12 @@ Object.defineProperty(HTMLElement.prototype, 'clientWidth', {
});
// beforeAll hook to set up the DOM and load D3.js script
beforeAll(() => {
jest.spyOn(Intl, 'DateTimeFormat').mockImplementation(() => ({
resolvedOptions: () => ({ timeZone: 'UTC' })
}));
});
beforeAll(done => {
// Set up the DOM with the D3 script included
document.body.innerHTML = `