1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fixing tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-01-26 14:51:55 +03:00
parent bc0ca6c3a0
commit 27b8d86d69

View File

@ -49,7 +49,8 @@ describe("lens extension", () => {
isBundled: false, isBundled: false,
isEnabled: true, isEnabled: true,
isCompatible: true, isCompatible: true,
}, updateChecker); updateChecker
});
const updateSpy = jest.spyOn(updateChecker, "run"); const updateSpy = jest.spyOn(updateChecker, "run");
@ -58,7 +59,7 @@ describe("lens extension", () => {
expect(updateSpy).toHaveBeenCalledWith({ expect(updateSpy).toHaveBeenCalledWith({
name: "foo-bar", name: "foo-bar",
version: "0.1.1", version: "0.1.1",
}); }, false);
}); });
}); });
@ -81,7 +82,8 @@ describe("lens extension", () => {
isBundled: false, isBundled: false,
isEnabled: true, isEnabled: true,
isCompatible: true, isCompatible: true,
}, updateChecker); updateChecker
});
const availableUpdate = await ext.checkForUpdate(); const availableUpdate = await ext.checkForUpdate();