Skip to content

Commit

Permalink
feat: remove storages in AgentServicesProps in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-HocNguyena committed May 8, 2024
1 parent 9f978c6 commit 8c742d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/core/agent/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ class Agent {
eventService: new EventService(),
};

(this.peerConnectionStorage = new PeerConnectionStorage(
this.peerConnectionStorage = new PeerConnectionStorage(
this.getStorageService<PeerConnectionMetadataRecord>(
this.storageSession
)
)),
(Agent.ready = true);
);
Agent.ready = true;
}
}

Expand Down
3 changes: 0 additions & 3 deletions src/ui/pages/IncomingRequest/IncomingRequest.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ const signifyClient = jest.mocked({
const agentServicesProps = {
signifyClient: signifyClient as any,
eventService: new EventService(),
identifierStorage: {} as any,
credentialStorage: {} as any,
peerConnectionStorage: {} as any,
};

const signifyNotificationService = new SignifyNotificationService(
Expand Down

0 comments on commit 8c742d4

Please sign in to comment.