Skip to content

Commit

Permalink
[Feature] Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvergar committed Dec 14, 2023
1 parent 97de1fd commit e821d9a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ describe('SubscriberController', () => {
const resultAuth: GrafxTokenAuthCredentials = JSON.parse(resultJsonString!);

expect(resultAuth.token).toBe(refreshedToken);
expect(mockConfig.onAuthExpired).toHaveBeenCalledWith(connectorId);
expect(mockConfig.onAuthExpired).toHaveBeenCalledWith(connectorId, true);
expect(mockConfig.onAuthExpired).toHaveBeenCalledTimes(1);
});

Expand All @@ -313,7 +313,7 @@ describe('SubscriberController', () => {
const resultAuth = JSON.parse(resultJsonString!);

expect(resultAuth.type).toBe(AuthCredentialsTypeEnum.refreshed);
expect(mockConfig.onAuthExpired).toHaveBeenCalledWith(connectorId);
expect(mockConfig.onAuthExpired).toHaveBeenCalledWith(connectorId, false);
expect(mockConfig.onAuthExpired).toHaveBeenCalledTimes(1);
});

Expand Down

0 comments on commit e821d9a

Please sign in to comment.