Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OGPoyraz committed Dec 16, 2024
1 parent cb80b96 commit 19e52ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/message-manager/src/AbstractMessageManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,4 +545,12 @@ describe('AbstractTestManager', () => {
);
});
});

Check failure on line 548 in packages/message-manager/src/AbstractMessageManager.test.ts

View workflow job for this annotation

GitHub Actions / Lint, build, and test / Lint (20.x)

Delete `··`
describe('clearUnapprovedMessages', () => {
it('clears the unapproved messages', () => {
const controller = new AbstractTestManager(mockInitialOptions);
controller.clearUnapprovedMessages();
expect(controller.getUnapprovedMessagesCount()).toBe(0);
});
});
});
2 changes: 1 addition & 1 deletion packages/message-manager/src/AbstractMessageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export abstract class AbstractMessageManager<
return message;
}

protected clearUnapprovedMessages() {
clearUnapprovedMessages() {
this.update((state) => {
state.unapprovedMessages = {};
state.unapprovedMessagesCount = 0;
Expand Down

0 comments on commit 19e52ec

Please sign in to comment.