2022-03-28 10:00:42 -04:00
|
|
|
import { webcrypto } from "crypto";
|
2025-02-25 23:02:19 +01:00
|
|
|
import "@bitwarden/ui-common/setup-jest";
|
2022-03-28 10:00:42 -04:00
|
|
|
|
|
|
|
|
Object.defineProperty(window, "CSS", { value: null });
|
|
|
|
|
Object.defineProperty(window, "getComputedStyle", {
|
|
|
|
|
value: () => {
|
|
|
|
|
return {
|
|
|
|
|
display: "none",
|
|
|
|
|
appearance: ["-webkit-appearance"],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Object.defineProperty(document, "doctype", {
|
|
|
|
|
value: "<!DOCTYPE html>",
|
|
|
|
|
});
|
|
|
|
|
Object.defineProperty(document.body.style, "transform", {
|
|
|
|
|
value: () => {
|
|
|
|
|
return {
|
|
|
|
|
enumerable: true,
|
|
|
|
|
configurable: true,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Object.defineProperty(window, "crypto", {
|
|
|
|
|
value: webcrypto,
|
|
|
|
|
});
|