Doc commit tag conventions

This commit is contained in:
Jim Hamill
2025-03-10 05:36:16 +00:00
parent 307650e9fc
commit 0346f3f79e
23 changed files with 1290 additions and 286 deletions
@@ -0,0 +1,30 @@
import { describe, it, expect, beforeEach } from 'vitest';
import { StoreRemoteHTTP } from '~/src/storage/store-remote-http.js';
import { Encrypter } from '~/src/utils/encrypter';
import { PrivateKey } from '@xocash/primitives';
describe('StoreRemoteHTTP', () => {
describe('test', () => {
it('test', async () => {
const privateKey = PrivateKey.generateRandom();
const encrypter = await Encrypter.generateRandom();
const storeHTTP = await StoreRemoteHTTP.from(
'http://localhost:3000/store/',
privateKey,
encrypter,
);
// const keys = await storeHTTP.keys();
// console.log(keys);
await storeHTTP.set('someValue', { someThing: 'asd' });
await storeHTTP.set('someOtherValue', { someThing: 'asd' });
console.error(await storeHTTP.keys());
});
});
});
//