Merge branch 'main' into versions/next-major

This commit is contained in:
Joachim Van Herwegen
2023-10-05 14:28:06 +02:00
58 changed files with 1061 additions and 215 deletions

View File

@@ -37,4 +37,19 @@ describe('A Base64EncodingStorage', (): void => {
expect(results).toHaveLength(1);
expect(results[0]).toEqual([ 'key', data ]);
});
it('correctly handles keys that have been encoded by the source storage.', async(): Promise<void> => {
// Base 64 encoding of 'apple'
const encodedKey = 'YXBwbGU=';
const data = 'data';
map.set(encodedKey, data);
const results = [];
for await (const entry of storage.entries()) {
results.push(entry);
}
expect(results).toHaveLength(1);
expect(results[0]).toEqual([ 'apple', data ]);
});
});