mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-19 05:16:27 -07:00
test: clone VM results across Electron boundaries
- Clone tokenizer VM results into the host realm - Expect null-prototype profile maps in IPC validation tests
This commit is contained in:
@@ -1037,7 +1037,13 @@ test('registerIpcHandlers accepts per-controller profile config updates', async
|
||||
},
|
||||
};
|
||||
await saveHandler({}, update);
|
||||
assert.deepEqual(controllerSaves, [update]);
|
||||
assert.deepEqual(controllerSaves, [
|
||||
{
|
||||
...update,
|
||||
// Validation uses a null prototype to safely store arbitrary profile IDs.
|
||||
profiles: { __proto__: null, ...update.profiles },
|
||||
},
|
||||
]);
|
||||
|
||||
await assert.rejects(async () => {
|
||||
await saveHandler(
|
||||
|
||||
Reference in New Issue
Block a user