mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Try altering cancelIdleCallback stub to see if that makes test deterministic
Signed-off-by: Janne Savolainen <janne.savolainen@houston-inc.com>
This commit is contained in:
parent
4c775256bb
commit
e793859d82
@ -50,7 +50,11 @@ describe("kube-object-menu", () => {
|
||||
return undefined;
|
||||
};
|
||||
|
||||
window.cancelIdleCallback = () => {};
|
||||
window.cancelIdleCallback = cancelIdleCallback => {
|
||||
if (typeof cancelIdleCallback === "function") {
|
||||
cancelIdleCallback();
|
||||
}
|
||||
};
|
||||
|
||||
apiManagerStub = {
|
||||
getStore: <TKubeObjectStore extends KubeObjectStore<KubeObject>>(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user