All files / json-crdt-repo/src/remote/__tests__ setup.ts

100% Statements 9/9
100% Branches 0/0
100% Functions 1/1
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1714x 14x 14x   14x 117x 117x 117x   117x              
import {CalleeCaller} from '@jsonjoy.com/rpc-calls/lib/caller/CalleeCaller';
import {createCaller} from '@jsonjoy.com/json-crdt-server/lib/routes';
import {DemoServerRemoteHistory} from '../DemoServerRemoteHistory';
 
export const setup = () => {
  const {caller, services} = createCaller();
  const client = new CalleeCaller(caller.rpc as any, {} as any);
  const remote = new DemoServerRemoteHistory(client as any);
 
  return {
    services,
    caller,
    client,
    remote,
  };
};