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

Tweak more naming

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-05-09 09:55:39 +03:00
parent 1f178ba833
commit 557e2deec0
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A
3 changed files with 9 additions and 9 deletions

View File

@ -6,19 +6,19 @@ exports[`trigger updating using tray given no update available, when started ren
</body>
`;
exports[`trigger updating using tray given no update available, when started when an update becomes available renders 1`] = `
exports[`trigger updating using tray given no update available, when started when an update becomes ready to be installed renders 1`] = `
<body>
<div />
</body>
`;
exports[`trigger updating using tray given no update available, when started when an update becomes available when triggering installation of the update renders 1`] = `
exports[`trigger updating using tray given no update available, when started when an update becomes ready to be installed when triggering installation of the update renders 1`] = `
<body>
<div />
</body>
`;
exports[`trigger updating using tray given no update available, when started when an update becomes available when update becomes unavailable renders 1`] = `
exports[`trigger updating using tray given no update available, when started when an update becomes ready to be installed when update becomes unavailable renders 1`] = `
<body>
<div />
</body>

View File

@ -43,9 +43,9 @@ describe("trigger updating using tray", () => {
expect(trayItem).toBe(undefined);
});
describe("when an update becomes available", () => {
describe("when an update becomes ready to be installed", () => {
beforeEach(() => {
applicationBuilder.applicationUpdater.makeUpdateAvailable(true);
applicationBuilder.applicationUpdater.setUpdateIsReadyToBeInstalled(true);
});
it("renders", () => {
@ -78,14 +78,14 @@ describe("trigger updating using tray", () => {
describe("when update becomes unavailable", () => {
beforeEach(async () => {
applicationBuilder.applicationUpdater.makeUpdateAvailable(false);
applicationBuilder.applicationUpdater.setUpdateIsReadyToBeInstalled(false);
});
it("renders", () => {
expect(rendered.baseElement).toMatchSnapshot();
});
it("does not have possibility to trigger installation of the update", () => {
it("does not have possibility to trigger installation of the update anymore", () => {
const trayItem = applicationBuilder.tray.get("trigger-application-update");
expect(trayItem).toBe(undefined);

View File

@ -60,7 +60,7 @@ export interface ApplicationBuilder {
render: () => Promise<RenderResult>;
applicationUpdater: {
makeUpdateAvailable: (available: boolean) => void;
setUpdateIsReadyToBeInstalled: (available: boolean) => void;
};
tray: {
@ -157,7 +157,7 @@ export const getApplicationBuilder = () => {
dis,
applicationUpdater: {
makeUpdateAvailable: action((available: boolean) => {
setUpdateIsReadyToBeInstalled: action((available: boolean) => {
const updateIsAvailableState = mainDi.inject(updateIsAvailableStateInjectable);
updateIsAvailableState.set(available);