Skip to content

Commit

Permalink
fix: updated test cases for headless service
Browse files Browse the repository at this point in the history
  • Loading branch information
vichustephen committed Jan 5, 2024
1 parent 8bbd32c commit 9edc749
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/headless/src/lib/headless.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ describe('headless.service', () => {
});
await promiseResolveTimeout(0);

expect(mockServiceInstance.getNotificationsList).toBeCalledTimes(2);
expect(notificationsListener).toHaveBeenCalledTimes(4);
expect(mockServiceInstance.getNotificationsList).toBeCalledTimes(3);
expect(notificationsListener).toHaveBeenCalledTimes(8);
expect(notificationsListener).toHaveBeenNthCalledWith(
4,
expect.objectContaining({
Expand Down Expand Up @@ -673,7 +673,7 @@ describe('headless.service', () => {
await promiseResolveTimeout(0);

expect(mockServiceInstance.getNotificationsList).toBeCalledTimes(2);
expect(notificationsListener).toHaveBeenCalledTimes(4);
expect(notificationsListener).toHaveBeenCalledTimes(6);
expect(notificationsListener).toHaveBeenNthCalledWith(
4,
expect.objectContaining({
Expand Down Expand Up @@ -769,7 +769,7 @@ describe('headless.service', () => {
await promiseResolveTimeout(0);

expect(mockServiceInstance.getNotificationsList).toBeCalledTimes(2);
expect(notificationsListener).toHaveBeenCalledTimes(4);
expect(notificationsListener).toHaveBeenCalledTimes(6);
expect(notificationsListener).toHaveBeenNthCalledWith(
4,
expect.objectContaining({
Expand Down

0 comments on commit 9edc749

Please sign in to comment.