summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/jestGlobalMocks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/jestGlobalMocks.ts')
-rw-r--r--src/pybind/mgr/dashboard/frontend/src/jestGlobalMocks.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/jestGlobalMocks.ts b/src/pybind/mgr/dashboard/frontend/src/jestGlobalMocks.ts
new file mode 100644
index 000000000..cb2d8c64f
--- /dev/null
+++ b/src/pybind/mgr/dashboard/frontend/src/jestGlobalMocks.ts
@@ -0,0 +1,7 @@
+Object.defineProperty(window, 'getComputedStyle', {
+ value: () => ({
+ getPropertyValue: () => {
+ return '';
+ }
+ })
+});