Skip to content

Commit 887ef0c

Browse files
committed
feat(ANGULAR17): fix tests
1 parent e1d5c24 commit 887ef0c

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

karma.conf.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ module.exports = function (config) {
2828
fixWebpackSourcePaths: true,
2929
check: {
3030
global: {
31-
statements: 42.7,
32-
lines: 44.0,
33-
branches: 41.4,
34-
functions: 26.0,
31+
statements: 54,
32+
lines: 56,
33+
branches: 52,
34+
functions: 41,
3535
},
3636
},
3737
},

src/app/modules/shared/interceptors/token.interceptor.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ describe('AuthHttpInterceptor', () => {
106106
authRepositorySpy.getAccessTokenValue.and.returnValue('access');
107107
authRepositorySpy.getRefreshTokenValue.and.returnValue('refresh');
108108
authServiceSpy.refreshToken.and.returnValue(throwError(() => true));
109-
httpClient.get('/test4').subscribe();
109+
httpClient.get('/test4').subscribe({
110+
error: () => {},
111+
});
110112
controller.expectNone('/test4');
111113
expect(authServiceSpy.refreshToken).toHaveBeenCalled();
112114
expect(routerSpy.navigate).toHaveBeenCalledWith(['/auth/logout'], {

0 commit comments

Comments
 (0)