Skip to content

Commit 71d59f5

Browse files
committed
fix: #148 adding unit tests
1 parent 106ff7b commit 71d59f5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { InjectTokenInterceptor } from './modules/shared/interceptors/inject.token.interceptor';
21
import { CommonModule } from '@angular/common';
32
import { BrowserModule } from '@angular/platform-browser';
43
import { NgModule } from '@angular/core';
@@ -51,6 +50,7 @@ import { ProjectTypeListComponent } from './modules/customer-management/componen
5150
// tslint:disable-next-line: max-line-length
5251
import { CreateProjectTypeComponent } from './modules/customer-management/components/projects-type/components/create-project-type/create-project-type.component';
5352
import { CustomerEffects } from './modules/customer-management/store/customer-management.effects';
53+
import { InjectTokenInterceptor } from './modules/shared/interceptors/inject.token.interceptor';
5454

5555
@NgModule({
5656
declarations: [

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { AzureAdB2CService } from 'src/app/modules/login/services/azure.ad.b2c.service';
1+
import { HttpHandler, HttpRequest, HttpResponse, HttpEvent } from '@angular/common/http';
22
import { Observable, of } from 'rxjs';
33

4+
import { AzureAdB2CService } from 'src/app/modules/login/services/azure.ad.b2c.service';
45
import { environment } from '../../../../environments/environment';
56
import { InjectTokenInterceptor } from './inject.token.interceptor';
6-
import { HttpHandler, HttpRequest, HttpResponse, HttpEvent } from '@angular/common/http';
77

88
describe('InjectTokenInterceptor test', () => {
99

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { AzureAdB2CService } from 'src/app/modules/login/services/azure.ad.b2c.service';
21
import { Injectable } from '@angular/core';
32
import {
43
HttpEvent,
@@ -8,6 +7,7 @@ import {
87
} from '@angular/common/http';
98
import { Observable } from 'rxjs';
109

10+
import { AzureAdB2CService } from 'src/app/modules/login/services/azure.ad.b2c.service';
1111
import { environment } from './../../../../environments/environment';
1212

1313
@Injectable()

0 commit comments

Comments
 (0)