feat: initial implementation of qtfm android

This commit is contained in:
鲁树人
2023-11-29 23:45:56 +00:00
parent 85ab69d41d
commit 18d02a906b
12 changed files with 871 additions and 416 deletions

View File

@@ -22,12 +22,14 @@ test('should be able to forward request to worker client bus', async () => {
);
const queue = new DecryptionQueue(bus, 1);
await expect(queue.add({ id: 'file://1', blobURI: 'blob://mock-file', options: {} })).resolves.toEqual({
await expect(
queue.add({ id: 'file://1', blobURI: 'blob://mock-file', options: { fileName: 'test.bin' } }),
).resolves.toEqual({
actionName: DECRYPTION_WORKER_ACTION_NAME.DECRYPT,
payload: {
blobURI: 'blob://mock-file',
id: 'file://1',
options: {},
options: { fileName: 'test.bin' },
},
});
});