mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 20:56:19 -08:00
fix(updater): address final review feedback
This commit is contained in:
1 parent
f1fc5ec7b2
commit
3cc46c492b
4 files changed
+59
-1
No files matched your search
@@ -98,4 +98,19 @@ describe('SettingsAboutSectionComponent app updates', () => {
|
||||
expect(getButton(fixture, 'app-update-open-release')).toBeTruthy();
|
||||
expect(openManual).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
it('uses a neutral status label before unsupported packages have checked GitHub releases', () => {
|
||||
configureComponent(fixture, {
|
||||
currentVersion: '0.22.0',
|
||||
manualDownloadUrl:
|
||||
'https://github.com/4gray/iptvnator/releases/latest',
|
||||
status: ELECTRON_BRIDGE_APP_UPDATE_STATUSES.Unsupported,
|
||||
supportedSelfUpdate: false,
|
||||
});
|
||||
|
||||
expect(fixture.componentInstance.appUpdateStatusLabelKey()).toBe(
|
||||
'SETTINGS.APP_UPDATE_IDLE'
|
||||
);
|
||||
expect(getButton(fixture, 'app-update-open-release')).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -97,7 +97,7 @@ export class SettingsAboutSectionComponent {
|
||||
case ELECTRON_BRIDGE_APP_UPDATE_STATUSES.Downloaded:
|
||||
return 'SETTINGS.APP_UPDATE_DOWNLOADED';
|
||||
case ELECTRON_BRIDGE_APP_UPDATE_STATUSES.Unsupported:
|
||||
return 'SETTINGS.APP_UPDATE_MANUAL_AVAILABLE';
|
||||
return 'SETTINGS.APP_UPDATE_IDLE';
|
||||
case ELECTRON_BRIDGE_APP_UPDATE_STATUSES.Error:
|
||||
return 'SETTINGS.APP_UPDATE_ERROR';
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user