in my Jest test, i would like to test window.URL.createObjectURL() without override the window object for this reason I am trying to inject the Window object on my test but it still doesn't work, how can i test the window.URL.createObjectURL() without override the window object, is it possible?
import { InjectionToken } from '@angular/core';
export const WINDOW = new InjectionToken<Window>('WINDOW', {
providedIn: 'root',
factory: () => window,
});