Tweak naming of variable

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2022-07-29 09:36:19 +03:00
1 parent 55b27de10a
commit 54fb845ac3
5 files changed
+8 -8

No files matched your search

@@ -73,7 +73,7 @@ describe("encourage user to update when sufficient time passed since update was
}); });
describe("given the update check", () => { describe("given the update check", () => {
let processCheckingForUpdates: (source: string) => Promise<{ updateWasDiscoveredAndDownloaded: boolean }>; let processCheckingForUpdates: (source: string) => Promise<{ updateIsReadyToBeInstalled: boolean }>;
beforeEach(async () => { beforeEach(async () => {
processCheckingForUpdates = applicationBuilder.dis.mainDi.inject( processCheckingForUpdates = applicationBuilder.dis.mainDi.inject(
@@ -63,7 +63,7 @@ describe("installing update", () => {
describe("when started", () => { describe("when started", () => {
let rendered: RenderResult; let rendered: RenderResult;
let processCheckingForUpdates: (source: string) => Promise<{ updateWasDiscoveredAndDownloaded: boolean }>; let processCheckingForUpdates: (source: string) => Promise<{ updateIsReadyToBeInstalled: boolean }>;
beforeEach(async () => { beforeEach(async () => {
rendered = await applicationBuilder.render(); rendered = await applicationBuilder.render();
@@ -67,7 +67,7 @@ describe("selection of update stability", () => {
describe("when started", () => { describe("when started", () => {
let rendered: RenderResult; let rendered: RenderResult;
let processCheckingForUpdates: (source: string) => Promise<{ updateWasDiscoveredAndDownloaded: boolean }>; let processCheckingForUpdates: (source: string) => Promise<{ updateIsReadyToBeInstalled: boolean }>;
beforeEach(async () => { beforeEach(async () => {
rendered = await applicationBuilder.render(); rendered = await applicationBuilder.render();
@@ -59,9 +59,9 @@ const checkForUpdatesTrayItemInjectable = getInjectable({
click: pipeline( click: pipeline(
async () => { async () => {
const { updateWasDiscoveredAndDownloaded } = await processCheckingForUpdates("tray"); const { updateIsReadyToBeInstalled } = await processCheckingForUpdates("tray");
if (updateWasDiscoveredAndDownloaded) { if (updateIsReadyToBeInstalled) {
await showApplicationWindow(); await showApplicationWindow();
} }
}, },
@@ -42,7 +42,7 @@ const processCheckingForUpdatesInjectable = getInjectable({
checkingForUpdatesState.set(false); checkingForUpdatesState.set(false);
}); });
return { updateWasDiscoveredAndDownloaded: false }; return { updateIsReadyToBeInstalled: false };
} }
const { version, actualUpdateChannel } = result; const { version, actualUpdateChannel } = result;
@@ -54,7 +54,7 @@ const processCheckingForUpdatesInjectable = getInjectable({
checkingForUpdatesState.set(false); checkingForUpdatesState.set(false);
}); });
return { updateWasDiscoveredAndDownloaded: true }; return { updateIsReadyToBeInstalled: true };
} }
emitEvent({ emitEvent({
@@ -74,7 +74,7 @@ const processCheckingForUpdatesInjectable = getInjectable({
const { downloadWasSuccessful } = await downloadUpdate(); const { downloadWasSuccessful } = await downloadUpdate();
return { updateWasDiscoveredAndDownloaded: downloadWasSuccessful }; return { updateIsReadyToBeInstalled: downloadWasSuccessful };
}; };
}, },
}); });