mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-02 08:40:08 +01:00
ed78f7e7cb
* Configure jest for Desktop and add simple tests * Remove Jest from tsconfig types
24 lines
492 B
TypeScript
24 lines
492 B
TypeScript
import "jest-preset-angular/setup-jest";
|
|
|
|
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,
|
|
};
|
|
},
|
|
});
|