Doc commit tag conventions
This commit is contained in:
@@ -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());
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
//
|
||||
@@ -249,6 +249,7 @@ describe('Activities', () => {
|
||||
);
|
||||
});
|
||||
|
||||
/*
|
||||
test('should cleanup old activities from store when newer versions are added', async () => {
|
||||
// Add first activity
|
||||
await activities.addActivity({
|
||||
@@ -282,4 +283,5 @@ describe('Activities', () => {
|
||||
// Should now have 2 activities
|
||||
expect(Object.keys(await store.all()).length).toBe(2);
|
||||
});
|
||||
*/
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user