15c0c35df6
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
10 lines
375 B
TypeScript
10 lines
375 B
TypeScript
import type { Window as HappyDOMWindow } from "happy-dom";
|
|
import { expect, it } from "vitest";
|
|
|
|
it("disables external stylesheet loads without dispatching an error", () => {
|
|
const settings = (window as unknown as HappyDOMWindow).happyDOM.settings;
|
|
|
|
expect(settings.disableCSSFileLoading).toBe(true);
|
|
expect(settings.handleDisabledFileLoadingAsSuccess).toBe(true);
|
|
});
|