mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Tweak naming of variable
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
55b27de10a
commit
54fb845ac3
@ -73,7 +73,7 @@ describe("encourage user to update when sufficient time passed since update was
|
||||
});
|
||||
|
||||
describe("given the update check", () => {
|
||||
let processCheckingForUpdates: (source: string) => Promise<{ updateWasDiscoveredAndDownloaded: boolean }>;
|
||||
let processCheckingForUpdates: (source: string) => Promise<{ updateIsReadyToBeInstalled: boolean }>;
|
||||
|
||||
beforeEach(async () => {
|
||||
processCheckingForUpdates = applicationBuilder.dis.mainDi.inject(
|
||||
|
||||
@ -63,7 +63,7 @@ describe("installing update", () => {
|
||||
|
||||
describe("when started", () => {
|
||||
let rendered: RenderResult;
|
||||
let processCheckingForUpdates: (source: string) => Promise<{ updateWasDiscoveredAndDownloaded: boolean }>;
|
||||
let processCheckingForUpdates: (source: string) => Promise<{ updateIsReadyToBeInstalled: boolean }>;
|
||||
|
||||
beforeEach(async () => {
|
||||
rendered = await applicationBuilder.render();
|
||||
|
||||
@ -67,7 +67,7 @@ describe("selection of update stability", () => {
|
||||
|
||||
describe("when started", () => {
|
||||
let rendered: RenderResult;
|
||||
let processCheckingForUpdates: (source: string) => Promise<{ updateWasDiscoveredAndDownloaded: boolean }>;
|
||||
let processCheckingForUpdates: (source: string) => Promise<{ updateIsReadyToBeInstalled: boolean }>;
|
||||
|
||||
beforeEach(async () => {
|
||||
rendered = await applicationBuilder.render();
|
||||
|
||||
@ -59,9 +59,9 @@ const checkForUpdatesTrayItemInjectable = getInjectable({
|
||||
|
||||
click: pipeline(
|
||||
async () => {
|
||||
const { updateWasDiscoveredAndDownloaded } = await processCheckingForUpdates("tray");
|
||||
const { updateIsReadyToBeInstalled } = await processCheckingForUpdates("tray");
|
||||
|
||||
if (updateWasDiscoveredAndDownloaded) {
|
||||
if (updateIsReadyToBeInstalled) {
|
||||
await showApplicationWindow();
|
||||
}
|
||||
},
|
||||
|
||||
@ -42,7 +42,7 @@ const processCheckingForUpdatesInjectable = getInjectable({
|
||||
checkingForUpdatesState.set(false);
|
||||
});
|
||||
|
||||
return { updateWasDiscoveredAndDownloaded: false };
|
||||
return { updateIsReadyToBeInstalled: false };
|
||||
}
|
||||
|
||||
const { version, actualUpdateChannel } = result;
|
||||
@ -54,7 +54,7 @@ const processCheckingForUpdatesInjectable = getInjectable({
|
||||
checkingForUpdatesState.set(false);
|
||||
});
|
||||
|
||||
return { updateWasDiscoveredAndDownloaded: true };
|
||||
return { updateIsReadyToBeInstalled: true };
|
||||
}
|
||||
|
||||
emitEvent({
|
||||
@ -74,7 +74,7 @@ const processCheckingForUpdatesInjectable = getInjectable({
|
||||
|
||||
const { downloadWasSuccessful } = await downloadUpdate();
|
||||
|
||||
return { updateWasDiscoveredAndDownloaded: downloadWasSuccessful };
|
||||
return { updateIsReadyToBeInstalled: downloadWasSuccessful };
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user