You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
596 B
29 lines
596 B
import { webcrypto } from "crypto"; |
|
|
|
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, |
|
}; |
|
}, |
|
}); |
|
|
|
Object.defineProperty(window, "crypto", { |
|
value: webcrypto, |
|
});
|
|
|