Address PR feedback

This commit is contained in:
Ryan Ahearn
2022-10-27 18:16:24 +00:00
parent 55abdae45d
commit e335487b9e
2 changed files with 4 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ let _location = {
href: "https://www.notifications.service.gov.uk",
}
// JSDOM provides a read-only window.location, which does not allow for
// mocking or setting.
Object.defineProperty(window, 'location', {
get: () => _location,
set: (value) => {