Skip to content

Commit

Permalink
test: fix missing unitest
Browse files Browse the repository at this point in the history
  • Loading branch information
bao-sotatek committed May 7, 2024
1 parent 780214b commit e9994f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ui/components/AppWrapper/AppWrapper.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jest.mock("../../../core/agent/agent", () => ({
},
signifyNotifications: {
onNotificationStateChanged: jest.fn(),
onSignifyOperationStateChanged: jest.fn(),
},
},
},
Expand Down
14 changes: 13 additions & 1 deletion src/ui/pages/IncomingRequest/IncomingRequest.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ const notificationStorage = jest.mocked({
getAll: jest.fn(),
});

const identifierStorage = jest.mocked({
open: jest.fn(),
save: jest.fn(),
delete: jest.fn(),
deleteById: jest.fn(),
update: jest.fn(),
findById: jest.fn(),
findAllByQuery: jest.fn(),
getAll: jest.fn(),
});

const identifiersListMock = jest.fn();
const identifiersGetMock = jest.fn();
const identifiersCreateMock = jest.fn();
Expand Down Expand Up @@ -112,7 +123,8 @@ const agentServicesProps = {

const signifyNotificationService = new SignifyNotificationService(
agentServicesProps,
notificationStorage as any
notificationStorage as any,
identifierStorage as any
);

describe("Multi-Sig request", () => {
Expand Down

0 comments on commit e9994f4

Please sign in to comment.