mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-12 17:16:20 -07:00
feat(anime): add version-aware extension updates
- Compare installed APK version codes before offering updates - Add update status labels and an Update all action
This commit is contained in:
@@ -29,3 +29,19 @@ test('anime browser preference IPC coerces values at the renderer boundary', ()
|
||||
['source', 'invalid', ''],
|
||||
]);
|
||||
});
|
||||
|
||||
test('anime browser bulk update IPC returns the runtime result', async () => {
|
||||
const handlers = new Map<string, (event: unknown, ...args: unknown[]) => unknown>();
|
||||
registerAnimeBrowserIpcHandlers({
|
||||
ipcMain: {
|
||||
handle: (channel, listener) => handlers.set(channel, listener),
|
||||
},
|
||||
runtime: {
|
||||
updateAllExtensions: async () => 3,
|
||||
} as never,
|
||||
});
|
||||
|
||||
const updateAll = handlers.get(IPC_CHANNELS.request.animeBrowserUpdateAllExtensions);
|
||||
assert.ok(updateAll);
|
||||
assert.equal(await updateAll({}), 3);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user