diff --git a/app/javascript/test/viewer/uv_manager.spec.js b/app/javascript/test/viewer/uv_manager.spec.js index 9e17418d28..f560674d90 100644 --- a/app/javascript/test/viewer/uv_manager.spec.js +++ b/app/javascript/test/viewer/uv_manager.spec.js @@ -81,13 +81,7 @@ describe('UVManager', () => { return 'https://figgy.princeton.edu/uv/uv_config.json' } else { return null } }) - - // This makes it so global.UV.URLDataProvider.get returns our mock data - const provider = vi.fn().mockImplementation(() => { - return { get: getResult } - }) - global.UV = { URLDataProvider: provider } - global.createUV = vi.fn() + global.getResult = getResult // Allow window location assign const location = window.location vi.spyOn(location, 'assign').mockImplementation(() => true)