1
0
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:
Janne Savolainen 2021-11-09 08:32:02 +02:00 committed by Janne Savolainen
parent 4c775256bb
commit e793859d82

View File

@ -50,7 +50,11 @@ describe("kube-object-menu", () => {
return undefined; return undefined;
}; };
window.cancelIdleCallback = () => {}; window.cancelIdleCallback = cancelIdleCallback => {
if (typeof cancelIdleCallback === "function") {
cancelIdleCallback();
}
};
apiManagerStub = { apiManagerStub = {
getStore: <TKubeObjectStore extends KubeObjectStore<KubeObject>>( getStore: <TKubeObjectStore extends KubeObjectStore<KubeObject>>(