mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-18 06:23:02 +08:00
🗽 Sync 2026-10-23 00:46:23
This commit is contained in:
1 parent
6032a57538
commit
2b29b0c4e1
112 files changed
+1859
-6208
No files matched your search
@@ -57,6 +57,16 @@ test('loading the settings reads local state without a remote check; checks are
|
||||
assert.equal(f.nodes.find(n => n.tag === 'details').open, true);
|
||||
});
|
||||
|
||||
test('failed checks show a cooldown time and retain previous version information', async () => {
|
||||
const f = fixture({ initial: checked('3.0.0-r1'), check: { result: 1, retry_at: Math.floor(Date.now() / 1000) + 60 } });
|
||||
await f.render();
|
||||
await f.button().click();
|
||||
assert.match(f.status(), /network connection/);
|
||||
assert.match(f.status(), /Try again after/);
|
||||
assert.equal(f.installButton().hidden, true);
|
||||
assert.ok(f.nodes.some(n => n.textContent === '3.0.0-r1'));
|
||||
});
|
||||
|
||||
test('package revisions, numeric versions, prereleases and locally newer builds compare correctly', async () => {
|
||||
for (const [current, latest, manager, expected] of [
|
||||
['3.0.0-r1', '3.0.0-r2', 'apk', 'Update available.'],
|
||||
|
||||
Reference in new issue
Block a user