1
0
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:
Janne Savolainen 2022-07-29 09:36:19 +03:00
parent 55b27de10a
commit 54fb845ac3
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A
5 changed files with 8 additions and 8 deletions

View File

@ -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(

View File

@ -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();

View File

@ -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();

View File

@ -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();
}
},

View File

@ -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 };
};
},
});