Fixed issues found in testing of react-table upgrade changes. #7419

UI fixes and improvement in System Stats Dashboard.
This commit is contained in:
Aditya Toshniwal
2024-05-20 10:41:55 +05:30
parent 9647482791
commit d6a9f8a06c
7 changed files with 137 additions and 158 deletions

View File

@@ -22,13 +22,14 @@ global.matchMedia = (query)=>({
dispatchEvent: jest.fn(),
});
class IntersectionObserver {
class GeneralObserver {
observe() {return null;}
unobserve() {return null;}
disconnect() {return null;}
}
global.IntersectionObserver = IntersectionObserver;
global.IntersectionObserver = GeneralObserver;
global.ResizeObserver = GeneralObserver;
import lodash from 'lodash';
global._ = lodash;