File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { KeyValueStore } from " @web5/common" ;
1+ import { KeyValueStore } from ' @web5/common' ;
22
33export type ServerInfo = {
44 /** the maximum file size the user can request to store */
Original file line number Diff line number Diff line change 11import sinon from 'sinon' ;
22import { expect } from 'chai' ;
3- import { testDwnUrl } from './utils/test-config.js'
3+ import { testDwnUrl } from './utils/test-config.js' ;
44
5- import { Persona , TestDataGenerator } from '@tbd54566975/dwn-sdk-js' ;
65import { HttpDwnRpcClient , Web5RpcClient } from '../src/rpc-client.js' ;
76import { DwnServerInfoCacheMemory } from '../src/prototyping/clients/dwn-server-info-cache-memory.js' ;
87
98describe ( 'RPC Clients' , ( ) => {
109 describe ( 'HttpDwnRpcClient' , ( ) => {
11- let alice : Persona ;
1210 let client : HttpDwnRpcClient ;
1311
1412 beforeEach ( async ( ) => {
1513 sinon . restore ( ) ;
1614 client = new HttpDwnRpcClient ( ) ;
17- alice = await TestDataGenerator . generateDidKeyPersona ( ) ;
1815 } ) ;
1916
2017 it ( 'should retrieve subsequent result from cache' , async ( ) => {
@@ -56,13 +53,11 @@ describe('RPC Clients', () => {
5653 } ) ;
5754
5855 describe ( 'Web5RpcClient' , ( ) => {
59- let alice : Persona ;
6056 let client : Web5RpcClient ;
6157
6258 beforeEach ( async ( ) => {
6359 sinon . restore ( ) ;
6460 client = new Web5RpcClient ( ) ;
65- alice = await TestDataGenerator . generateDidKeyPersona ( ) ;
6661 } ) ;
6762
6863 describe ( 'getServerInfo' , ( ) => {
You can’t perform that action at this time.
0 commit comments